FM/Program to find FILE Size

Hi,
Is thr any function module to find the size(in bytes) of a file?
Regards,
Ram.

Hi,
Check this thread It may help you.
https://forums.sdn.sap.com/click.jspa?searchID=5244123&messageID=3686222
thanks,
Reward If Helpful.

Similar Messages

  • Trying to write an Automator program to find files with same time created and change file names to matching source folder names

    I am failrly green when it comes to automator.
    I am trying to write an Automator program:
    Not sure where to post this
    trying to write an Automator program to find files and alter their names
    I have a source folder with correct named master files in it.
    eg. A0001_1234.mpeg
    time created 14:02:03
    date 07/07/2012
    Another folder where there will be copies of the master files in a different format with different names but created at the same time as a file in the source directory.
    they are created with a seperate device but they are
    A0000001.mp4
    time created 14:02:03
    date 07/07/2012
    I need it to then take the name from the source fies and apply the correct name to the matching file based on the time it was created.
    I can't seem to find actions in automator that reference time crated.
    Is this something I will be able to Do in automator?
    Any help would be great
    Thanks
    R

    Hi,
    It's impossible to do this without any script in Automator.
    Use this AppleScript script :
    set source to choose folder with prompt "Select the source folder"
    set anotherfolder to choose folder with prompt "Choose the another folder"
    tell application "Finder"
        repeat with tfile in (get files of source)
            set cDate to creation date of tfile
            set findFiles to (files of anotherfolder whose creation date is cDate)
            if findFiles is not {} then
                set tName to name of tfile
                set name of item 1 of findFiles to tName
            end if
        end repeat
    end tell

  • How to create a program to find files then display results to be clickable?

    Hello,
    I am trying to find files based on extension name. It searches through all child folders from the parent folder to find files.
    This program example, Dupe File Finder shows "Name, Path, and Size" as results. This looks like a JTable without gridlines?
    http://www.softpicks.net/screenshots/Dupe-File-Finder.gif
    Files from the results will be opened differently when double clicked based on their extensions (.java, .jar. .bat. .vow). EX, .java extension opens in Firefox that displays clear text.
    Jtable Component:
    http://java.sun.com/docs/books/tutorial/uiswing/components/table.html
    All I can find is JTable class. I do not think JTable has the best tools to do this. What's your advice related to this program?
    Once I finish this program, I intend to make it find duplicate contents in excel files through the parent folder. Then it displays the list of duplicate files. Importing excel files in the mysql database might get the job done, but I still need to create a graphical user interface.
    Any help would be appreciated.

    This looks like a JTable without gridlines?right.
    All I can find is JTable class. I do not think JTable has the best tools to do this. What's your advice related to this program?JTable has all the facilities which you can think of e.g. the first column in the shown table has a checkbox, this is also possible using JTable, you can set different CellRenderers and CellEditors to customize the table (carry on reading the tutorial, you will find it all there). I would suggest go ahead with JTable.
    Thanks!

  • Finder file size on external drive

    When I do Finder->File->Get Info, I get total size of contents of current folder in the window.
    But when I do the same thing on an external drive, I do not.
    Is there a way to make that info show up?
    Thanks.

    I went to the Iphoto Library file in Finder, selected it, then moved the file to my external hard disk drive, which has a 500GB capacity.  So, even though I called this "backing up" maybe it was "copying" - but I do not understand the difference.
    A backup is a copy on a different device - so copying to an external device is a backup - UNTIL you start using that copy as your library - then it is the library and you have no backup  --  and note that if you do not have a backup you are 100% guarenteed to lose all of yoru photos sooner or later - computers, software and people fail and when they do a current backup is the only thing that will save your photos and other files
    Finally, I re-opened Iphoto, and when it asked me to select a Library, I chose the library file that I had copied onto my external hard drive.  All of my photos then re-loaded into Iphoto, and I have been looking and them and selecting some for deletion.
    So when you did this you started using the iPhoto library in the EHD and everything you do is reflected there
    I believe I understand what you've said - that changes I make (whether deleting, renaming, cropping, etc.) to photos in this file are being made directly onto the external hard disk drive.
    Yes
    So, to be absolutely specific, when I delete a photo in Iphoto to the TRASH CAN and then EMPTY the trash can, this photo is now and forever GONE from the external hard disk drive.
    Maybe
    To delete from iPhoto when using a default "managed" library (the iPhoto preference to "copy imported items to the iPhoto library is in its checked state)  drag a photo from an event to the iPhoto trash (or select it and press delete) and then empty the iPhoto trash and with iPhoto '11 under Lion empty the system trash - then the photo is gone forever from the external hard drive
    And edits I make to photos are SAVED to the external hard disk drive.  IS THAT CORRECT?
    Yes
    LN

  • Finding file sizes for target DFs with RMAN

    Hi,
    Does anybody know how to find the size of datafiles with RMAN database, when the entire target database is lost ?
    I have a full and incremental backup of the database using RMAN. Because of the way target db is physically laid on disks, I need to do "setext" to create data files of proper size before restoring them from RMAN backup.
    Thanks in advance,
    Kiran.

    Dear user522620,
    Have you created, configured and synchronized the catalog? Have you even registered the backed up database to your catalog? Have the user that backs up the database got the recovery_catalog_owner privilege?
    What is your connection string before backing up the database? Have you connected to your recovery catalog database?
    Please can you show the connection string? I think you have missed to connect to the recovery catalog database.
    # rman target sys/password catalog backup_owner/password@oracle_sid
    Ogan

  • Finding File Size Summary

    How do you find the total file size for your library?
    Thanks,
    Henri
    Powerbook G4, 1.67Ghz Superdrive   Mac OS X (10.4.2)  

    You might look at the bottom toolbar of iTunes, there's a number of items, total time and the file size of the library there; you could also find your iTunes Music folder (most likely in your main music folder) and ctrl click/right click on that folder and "Get Info."

  • Finding File Sizes

    How is it possible to find out the individual sizes of each file/folder? I'm talking about application type files as well as random document files that I also have.
    Thank you.

    You can open a finder window. Look on the upper frame of the window and find view. Then click on the view button that has straight lines.
    I like to use whatsize for this. It gives a view of aal the files on your hard drive and sizes.
    WhatSize
    http://www.id-design.com/Software/WhatSize/
    Mort

  • File Size Question: Browser vs. MediaManager vs. Finder

    Not an earth-shattering issue, but am just curious as to why the Browser, MM, and the Finder each offer different opinions as to the size of a given media file (or group of files).
    I've just finished capturing a couple of hours of HDV footage from a friend's Sony cam (model HDR-HC7). Used Capture Now with the pref to create new media files at any TC break. (Will later do selective shot-by-shot logging and transcoding into ProRes422, so this B-cam material can be easily combined with AVCHD-originated footage which is being ProRes'd on ingest. For now just had to get it all on disk, since my friend needs his camera back!)
    Anyway, everything went smoothly, but to use one file as an example, I happened to notice that in FCP7's "Size" Browser column, it's 78.2 MB; whereas MediaManager sees it as 77.1 MB; yet the Finder shows it as 82 MB.
    All the other captured files show a similar variation. Everything's in the same ballpark, of course -- and these days what's a few MBs between friends? -- but the differences total a couple of GBs by the end of day; still not a big deal in the grand scheme, just more of a variation than I would have predicted.
    So -- does anyone happen to know why this is the case? Do the Browser, MM, and the Finder each have different ways of evaluating how much space a particular media file is actually occupying, or are they each measuring subtly different things?
    Like I said -- just curious.
    Thanks,
    John B.
    Toronto

    +Is there a particular reason why it makes sense for the Browser to use one way, and the Finder to use the other?+
    Most likely it is down to which particular call is used by the programer to ascertain file size and therefore the way that file size data is returned to the app. Don't forget that the FCP's basic code is pretty darn old now and predates current best practices for file size reporting.
    +And why, staying with the above example, does the Media Manager come up with its own unique measurement altogether, different from BOTH of the others (or is that just part of its charm)?+
    Weird huh? And here's the bit you won't like ... I don't see the same discrepancy. On my system Media Manager and the Browser seem to report file sizes consistently.
    +Also -- am I correct in noticing that under Snow Leopard, Disk Utility has switched from one measurement scheme to the other? (DU suddenly seems to be seeing my 500GB drives as having a single-volume partition of -- gasp -- 500GB! Who would've thought?)+
    Yup, its a brave new world.

  • File size... event files vs. project files... finalizing... help!

    Hi,
    I'm trying to create some room on my hard drive, and I see that I have 80GB of files sitting in my events folder of iMovie. If I finalize my projects, will they take up less room than that original footage? Can I finalize everything and then trash all of the event footage? (I won't need to go back and reuse the originals... it's mostly individual band songs that each are their own project.) But... are those finalized projects re-editable if I want to add something later?
    Thanks for your help - I just want to make sure I'm optimizing my hard drive space. It's confusing to me where these different files are kept!
    I'm in Lion running iMovie 11.

    +Is there a particular reason why it makes sense for the Browser to use one way, and the Finder to use the other?+
    Most likely it is down to which particular call is used by the programer to ascertain file size and therefore the way that file size data is returned to the app. Don't forget that the FCP's basic code is pretty darn old now and predates current best practices for file size reporting.
    +And why, staying with the above example, does the Media Manager come up with its own unique measurement altogether, different from BOTH of the others (or is that just part of its charm)?+
    Weird huh? And here's the bit you won't like ... I don't see the same discrepancy. On my system Media Manager and the Browser seem to report file sizes consistently.
    +Also -- am I correct in noticing that under Snow Leopard, Disk Utility has switched from one measurement scheme to the other? (DU suddenly seems to be seeing my 500GB drives as having a single-volume partition of -- gasp -- 500GB! Who would've thought?)+
    Yup, its a brave new world.

  • XSLT with large file size

    Hello all,
    I am very new to XSL. I have been reading a lot on it. I have a small transformation program which takes an xml file, an xsl file and performs the transformation. Everything works fine when the file size is in terms of KB. When I tried the same program with the file size of around 118MB, it is giving me out of memory exception. I would appreciate any comments to make my program work for bigger file size. I am posting my java code and xsl file
    public static void xsl(String inFilename, String outFilename, String xslFilename) {
    try {
    // Create transformer factory
    TransformerFactory factory = TransformerFactory.newInstance();
    // Use the factory to create a template containing the xsl file
    Templates template = factory.newTemplates(new StreamSource(
    new FileInputStream(xslFilename)));
    // Use the template to create a transformer
    Transformer xformer = template.newTransformer();
    // Prepare the input and output files
    Source source = new StreamSource(new FileInputStream(inFilename));
    Result result = new StreamResult(new FileOutputStream(outFilename));
    // Apply the xsl file to the source file and write the result to the output file
    xformer.transform(source, result);
    } catch (FileNotFoundException e) {
    System.out.println("Exception " + e);
    } catch (TransformerConfigurationException e) {
    // An error occurred in the XSL file
    System.out.println("Exception " + e);
    } catch (TransformerException e) {
    // An error occurred while applying the XSL file
    // Get location of error in input file
    SourceLocator locator = e.getLocator();
    int col = locator.getColumnNumber();
    int line = locator.getLineNumber();
    String publicId = locator.getPublicId();
    String systemId = locator.getSystemId();
    System.out.println("Exception " + e);
    System.out.println("locator " + locator.toString());
    System.out.println("line : " + line);
    System.out.println("col : " + col);
    System.out.println("No Exception");
    xsl file :
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="xml" indent="yes"/>
    <xsl:template match="/">
    <xsl:element name="Hosts">
    <xsl:apply-templates select="//maps/map/hosts"/>
    </xsl:element>
    </xsl:template>
    <xsl:template match="//maps/map/hosts">
    <xsl:for-each select="*">
    <xsl:element name="host">
    <xsl:element name="ip"><xsl:value-of select="./@ip"/></xsl:element>
    <xsl:element name="known"><xsl:value-of select="./known/@v"/></xsl:element>
    <xsl:element name="targeted"><xsl:value-of select="./targeted/@v"/></xsl:element>
    <xsl:element name="asn"><xsl:value-of select="./asn/@v"/></xsl:element>
    <xsl:element name="reverse_dns"><xsl:value-of select="./reverse_dns/@v"/></xsl:element>
    </xsl:element>
    </xsl:for-each>
    </xsl:template>
    Thanks,
    Namrata
    </xsl:stylesheet>

    One thing you could try to do is avoid using xpath like ".//" and "*".
    I had many problems in terms of memory consuptiom and performance with xpaths like above.
    Altrought you have a little more work to code your xslt it performs better, and probably you will write once and run many times.

  • Adobe flash does not work on bootcamp windows 2002 xp. down loaded to windows. works with Mac. No program folder for such. shows up in "add delete programs" (in setting) but without a file size. I have a MacBook Pro purchased new in June 2010.

    Using bootcamp (windows 2002 xp) I down loaded adobe flash player from the windows platform. told me it installed successfully. however does not work in windows, does works in mac. in xp there is no created program folder for such or created short cut. In the control panel (xp) in add/delete programs it is listed but wihout any file size or frequency used. I've deleted & reinstalled numerous times. Mac OS is 10.6.8. Windows is 32 bit. Can't find a thing that discusses this. THANKS!

    I just now posted it Adobe Flash Player 17.0  -  Bug 3973913
    Adobe Flash Player 17.0  -  Bug 3973913
    Adobe Flash Player 17.0  -  Bug 3973913
    Adobe Flash Player 17.0  -  Bug 3973913

  • Incorrect file sizes in Finder

    Was looking at other discussions about file sizes but they didn't seem to reflect the same issue that I'm having. Maybe I misread them.
    Since updating to Snow leopard on all my Macs, I noticed that all the files are reflecting about 3-8% more than their actual size. Basically, the Finder is reporting the wrong file sizes. By using a file transfer software like Transmit, the file sizes are reflected correctly. For example, if I download iTunes 9.3, the download file is 93.6MB but the Finder shows 98.2MB. Transmit shows 93.6MB which is correct.
    Anyway to fix this annoying issue?

    I think the issue has to do with the fact that some programs have not adopted the new method yet. Unfortunately programs like iTunes can be used on on operating systems as far back as Tiger which used the old system. I noticed this several months ago and find it very irritating, especially when trying to do things like burn DVDs/CDs and trying to fill them up as much as possible. The only thing you can do about it is provide feedback to Apple at http://www.apple.com/feedback/ and hope they fix it in upcoming releases of their software.

  • How do I find the size of a video file in iTunes store?

    Is there any way to find out how big a video file is before I download it to my computer? I see that movies show the file size in the product description, but what about episodes of a TV show? Or a complete season? Or a video in iTunes U?
    I tried "right clicking" (or whatever that's referred to on a Mac, sorry, I just recently got my Mac) to get info on a few files, but it says the size is unavailable. I have an iPod Touch I'd like to get videos for, but I don't have a ton of space after putting all my music on it, so that's why I'd like to know the file sizes in advance.

    You can figure for a 1 hour TV show - about 40-45 minutes of video - you will have a file size of about 450-550 meg.
    A movie such as Pirates of the Carri..... will weigh in around 1.6-1.8 gig.
    MJ

  • How can I display file size in Finder

    Hi folks,
    I am trying to figure out where 40GB of data is hiding. I would like to see file sizes in the Finder window associated with my folders in Mountain Lion 10.8.2..  I'm having, what seems to me, a strange problem. When I 'Get Info' on my Hard Drive, the disc space left is only 40GB out of 120GB (ie used being 80GB). My confusion is that when I painstakingly go through the files, I can only account for 48 GB with 'Get Info' on each folder. This is a rather combersome process and I am hoping there is a work around for viewing the file sizes within Finder and not having to open 'Get Info' on each and every folder like I have been.
    I have a MacAir 13 inch 2011
    Thanks!

    Thanks for your time and suggestions, dominic23.
    I looked through both links and sadly, none of these suggestions have worked. I have tried many on my own since posting trying to figure out why the volume is being doubled on my hard drive. I've deleted log files, and done a sweep with Onyx to no avail. Strangely, the option of seeing the volumes under 'About this Mac' and 'System' does not have a listing for storage. Weird. I am the only user/administrator on this computer and I don't have shared files.
    I'm just stumped.

  • Any way to have file size included in the first search in finder?

    Is it possible to somehow show file sizes when doing a search in finder?
    On Panther, it was very helpful to have the file sizes listed. This immediately revealed whether the photoshop files I was looking for were full size or reduced.
    But when I run a search in Snow Leopard it only shows name, kind and last opened. Otherwise I have to also add a second search to add in file size.
    Any way to have file size included in the first search?
    Thanks!

    Well, I wish I could take credit for knowing it was there before two days ago... but I dropped my laptop a couple months ago and it finally died for good on Friday, and I noticed this on the new laptop when setting up my Finder preferences.

Maybe you are looking for