Method to get date file was created?

I don't see a method for this in class File. I can get lastModified() but I don't see a way to get the date the file was created. Any ideas?
Thx.

You'd need to resort to a JNI call, this is too OS specific. The date of creation is not available on e.g. UNIX operating systems.

Similar Messages

  • Retrieve the date a file was created in the background

    EDITED CONTENT----
    Apologies all...I just realized there is a specific forum for this type of question.  I will post it there.
    Thanks Marilyn for point this out>>>>should have read it first as suggested. 
    /message/2572763#2572763 [original link is broken]
    Hi guru's,
    I have a custom application that does some windows directory cleaning based an older than 'X' days setting.  I have to do some calculation to determine if the file being processed is older than that number of day and delete it if it is.  To determine the file created date I use the method DIRECTORY_LIST_FILES from CL_GUI_FRONTEND_SERVICES.  This works great in the foreground but dumps in the background because the handle object reference is not created in the class constructor and subsequently does a call to a "NULL" object.
    My question:
    Does anyone know of a way to get the date a file was created while running in the background?  If not, please read on --- I have another question regarding an alternate approach I am trying.
    I have tried the following approach FM EPS_GET_DIRECTORY_LISTING to return an internal table with all files in a directory.  Works fine in the background, but the created date is not in the return values.  Soooooo I looped at the internal table and called this system function:
            CALL 'C_FILE_ATTRIBUTES'
                ID 'NAME'     FIELD tempfile
                ID 'TYPE'     FIELD singleFile-
                ID 'LEN'      FIELD file-len
                ID 'OWNER'    FIELD file-owner
                ID 'MTIME'    FIELD file-mtime
                ID 'MODE'     FIELD file-mode
                ID 'ERRNO'    FIELD file-errno
                ID 'ERRMSG'   FIELD file-errmsg.
    This returns the MTime, which is the Modified time (in Epoch time format: number of seconds since Midnight 1 January 1970), but no created time.  Does anyone know the ID for the created time?  I tried CTIME but no value is returned. 
    Along with this question: any idea if a FM or Method exists to convert Epoch time to a standard time.  I could do the calculation myself....but it seems someone would have already done this.  No point in re-creating the wheel.
    Thanks so much,
    Quack
    Message was edited by:
            Ryan Quackenboss

    I will be happy to.
    Please post something to this thread. 
    Retrieve the date a file was created in the background
    I UNMARKED this question as a post and reposted in the data transfer forum.
    That post is still open.  Once you post there, I will mark it ANSWERED and award points.
    Thanks for the help
    Quack

  • Unable to combine files on acrobat 8 getting error message "no PDF file was created beacuse Acrobat encountered an unidentified error"

    unable to combine files on acrobat 8 getting error message "no PDF file was created beacuse Acrobat encountered an unidentified error" Please help

    A lot of the time the files can not be combined because of incompatible fonts, or at least font sets that could not be resolved. Maybe that will give you some direction to look at.

  • Save as failed to process this document. No file was created.

    I've had Adobe Acrobat XI installed on my computer since November of 2013 and had never had any problems with the 'Save As' function - I could save all kinds of PDFs to Word, Excel, Power Point -- whichever format I needed -- until yesterday. Now I am suddenly getting "Save as failed to process this document. No file was created."
    I also have the exact same set up (Windows 8, 64, Adobe Acrobat XI) on my laptop and have no issues w/ the "Save As" feature. To make sure that it is just my desktop's Acrobat that is acting strange, I took the exact same document and was NOT ABLE to "Save As" on desktop -- and was, with no issues, able to "Save As" the exact same document to Word on my laptop.
    The ability to "Save As" is a feature that I use often -- so, please, tell me how I can get that feature back. I've already tried the "Repair" feature in Acrobat - no luck.

    Hi Bill,
    Yes - I did the upgrade - which I was avoiding because last time I upgraded, the font and icons within Adobe Acrobat became microscopic -- so I did a 'system restore' and turned off my updates. I have old eyes & work with Adobe Acrobat all day -- so the tiny print is horrible.
    So, now I can either NOT be able to see the fonts and have the ability to convert to Word/Excel, etc OR, I can revert and actually SEE the fonts - but not be able to convert the documents I need to convert. This sucks.
    Adobe Acrobat XI upgrade (11.0.06 and .07) has really been a disappointment. I've done all the little tricks about trying to fix the size of the fonts - but, just like most of what I've read, I can either have HUGE fonts/menus, etc or make it 'readable' by changing the registry - but then end up w/ horrible little icons.
    It's really sad to have to choose one or the other - I'm very disappointed in Adobe.
    Thanks for your input!!

  • "Save As failed to process this document. No file was created." Error trying to convert pdf to word document

    Hi - I have a pdf created from indesign as a print quality pdf. The client now wanted to text in an editable format so they can reuse the content for a new years event.
    I get an error message "Save As failed to process this document. No file was created."
    Can anyone help out here?  There are a lot of graphics in it and it is horizontal - could any of this be an issue?
    Thanks
    Nikola

    Totally agree. Saving the pdf as a word file gives it the look of a word file, until corrections have to be made. The text flow will be, so to say, "strange". Reusing that file in Indesign ...
    We always save as rtf, send that one back and relink it afterwards (as long as the styles stay the same, only smaller corrections have to be made.

  • This PostScript file was created from an encrypted PDF file.

    I have a postscript file which has been created from secure or encrypted (opening restriction) pdf.
    Now when i use distiller to convert this postscript file to pdf then distiller cannot produce a pdf file.
    The log file contains following text:
    This PostScript file was created from an encrypted PDF file.
    Redistilling encrypted PDF is not permitted.
    %%[ Flushing: rest of job (to end-of-file) will be ignored ]%%
    %%[ Warning: PostScript error. No PDF file produced. ] %%
    1) Is there a way to convert this postscript file into pdf ?
    I have a limitation that i cannot remove security from secure pdf.
    2) Do distiller provide any settings which can be changed to convert
    this kind of ps(from secure pdf) to pdf.
    3) Can we provide password to distiller during process of conversion to
    pdf.
    4) If above methods do not work then is there a way we can
    programatically use Distiller Api's for conversion of postscript (in case
    of postscript created from secure pdf) to pdf
    Like methods 'FileToPdf' etc.
    Thanks in advance.

    I am facing a similar problem.
    My workflow dictates that I convert the input PDF job initially to PS and finally back to PDF. If the input PDF file is secure (it's not encrypted - you will still be able to open the document), the redistillation of PS to PDF fails while using Normalizer 6.0 && 9.0 libraries. If I use Normalizer 505 library, the redistillation succeeds. I have checked with the same generated PS on both Distiller 6.0 && 9.0, and both the versions fail to reconvert as well. I am a little surprised that 6.0 and 9.0 will fail to do something that 505 library manages.
    Any suggestions?

  • Run big report in PDF hangs though the PDF file was created in server

    When running Oracle reports6i big master-details-details report(220 pages) in PDF format thru report server CGI on Netscape Enterprise Web server, it hangs. But the pdf file was created when checking in the server and is good when it's viewed directly using IE. Also checked the http://domain_name:8083/cgi-bin/reportcgi/showjobs?server=repsrv, the Job Status was 'FINISHED'.
    The HTTP_error_Log in the server is:
    [17/Feb/2004:13:31:42] failure (28995): for host 63.237.37.70 trying to POST /cgi-bin/reportcgi, cgieng_scan_headers reports: the CGI program /usr/netscape/elecprod/cgi-bin/reportcgi did not produce a valid header (read failed, error is Resource temporarily unavailable).
    Please help as our users demand it urgently.
    Thanks a lot.

    1) This bug734197 is fixed in version 3.0.5.13.0, which means it should be available in 6i (the version you are using) also. But from the bug description I see that it is reproduced with Reports 6.0.5.28.0 version also. If your reports 6i version is higher than this, it may contain this fix. Best thing is to apply the latest patch. The patches should be available in metalink (metalink.oracle.com) .
    2) For troubleshooting purposes run the report in html/rtf and see whether it times out. ( just to see whether
    this is a PDF specific issue)
    3) Disable acrobat web integration (in Adobe acrobat settings) and try . This will prevent Acrobat reader from opening the pdf automatically and instead will show a dialog to save the pdf report ( There are some IE - Adobe issues which are not reports bugs).
    4) There were some threads some time back which had this problem with long running reports and PDF. Finally it turned out to be webserver timeout problems. Pls see ( this is for 9i servlet and Apache webserver, but for 6i also it could be similar)
    Re: Long running reports end successfully - present s "page can not be foun
    5) If these does not work and if you are not able to make further progress, I suggest you to get in touch with Oracle Support (if you have a support contract) to solve this issue. [ If the possibility is that the bug you are mentioning is not pushed forward to 6i (a remote chance) then only they will be able to a get a oneoff patch.]
    Thanks
    Ratheesh

  • Set Adobe Acrobat XI Pro. When I want to save the file in WORD, EXCEL or esporta file into ... immediately throws an error "save as failed to process this document no file was created". What's the problem?

    Set Adobe Acrobat XI Pro. When I want to save the file in WORD, EXCEL or esporta file into ... immediately throws an error "save as failed to process this document no file was created".
    What's the problem?
    Any help in finding a solution is greatly appreciated.
    Thank you,

    Installed AcrobatXI PRO 11.0.09  on seven computers and laptops. Two of them gives an error when you try to save a document in WORD, EXCEL, Power Point, or when exporting to... error: Save failed to process this document. No File was created.
    But all good saves in the format of TXT and jpg.
    I have uninstalled and restored and re-installed and updated and registry cleaned and removed using the special utility Cleaner Tool for Acrobat, but nothing helps.
    On one notebook with Windows 8.1 and Microsoft office 2013, on another laptop with Windows 7 and Microsoft office 2010, the same problem, although there are computers with Windows 7 and Microsoft office 2010 and everything works.
    Tell me where to find the problem and how to solve it.
    Thank you.

  • I am facing issue when opening flash files in Flash CC. (error:- This file was created with a later release of Flash Professional and might contain new features that would be lost when saved in the current format.)

    I am facing issue when opening flash files in Flash CC. (error:- This file was created with a later release of Flash Professional and might contain new features that would be lost when saved in the current format.)

    Wow. Okay...
    I'll let the real veterans in this forum tackle your issues one after the other. But, I can tell you, all will be well.
    My only comment would be re: your computer specs:
    BJReis wrote:
    .  This may be due to somewhat older equipment:
    GHz Intel Core Duo MacBook Pro with a 4GB memory computer with Ddr3 running OSX 10.8.4
    To be completely honest, FCPX is a RAM hog. It just is. But, RAM is relatively cheap, and the pay-off is good.
    4GB is right on the edge, IMHO. 16G is ideal.
    I wish you luck, hang in there, and standby for more help.

  • No PDF file was created because Acrobat encountered an unidentified error.

    Product:
    Adobe Acrobat 8
    Windows XP SP3
    Problem:
    when user try to combine multiple PDF files into one file from network drives (hence that user have full permissions), received this error:
    "Error (file skipped)
    No PDF file was created because Acrobat encountered an unidentified error."
    Steps taken so far:
    - cleared windows temp files
    - cleared acrobat temp files
    - tried, same error
    - ran acrobat repair, tried it out, same error
    - made adjustments to "PDF Printer Properties per this article 
    http://www.experts-exchange.com/Web_Development/Document_Imaging/Adobe_Acrobat/Q_23903725. html
    - tried again, no luck.
    - removed adobe acrobat and reinstalled it completely from scratch.
    - ran updates
    - tried again, no luck.
    - granted the user full permission access to acrobat folder under program files, still same error
    - then, copied files that I need to convert locally to the system and tried to combine them, it worked!
    - its not permission issue as I tried the same from my domain admin account and received the error.
    - also the user reported that acrobat takes 15 o 20 sec each time opening a file
    Any ideas?!
    Thanks!

    If I change the properties to open as administrator, within the program I can combine pdfs over the network drive.
    .  I can't drag and drop or combine pdfs from windows explorer and everytime I open acrobat it asks if it can make changes.
    So it's still best to copy to c drive in order to use Combine and Portfolio features but would be really nice to use as designed.

  • When converting a .pptx file of 6MB to .pdf, the file size ballooned to 25MB. The original file was created on a PC. What happened? Why? How to fix? Thx.

    When converting a .pptx file of 6MB to .pdf, the file size ballooned to 25MB. The original file was created on a PC. What happened? Why? How to fix? Thx.

    gssharpe wrote:
    What happened?
    Nothing much. Different formats.
    How to fix?
    Try editing the original file. Resample pics to a lower resolution, check out other graphics, check table borders (eliminate any dotted lines or borders), check font usage. When generating PDF, try Save As (instead of Print > Save As), although I don't expect that'll make much difference.
    Next, open the PDF in Preview, choose File > Save As, choose Format: PDF, Quartz Filterz: Reduce File Size. If that isn't enough, you can use ColorSync Utility to duplicate the Reduce File Size filter, and then edit it for a more aggressive size reduction. But keep in mind that size reduction means lower quality.

  • Method to get all File names in a directory

    Hallo together,
    has Java any method, to get the file names in a specific directory?
    Regards,
    Martin

    ... or simply list() if you're interested in file names only.

  • "This file was created by Oracle Reports. View this document in Page Layout mode" , how to avoid this text

    we print some RTF Files , we dont want to  print to paper  this text "This file was created by Oracle Reports. View this document in Page Layout mode"
    How to able do it.
    Tanks for reply.

    we print some RTF Files , we dont want to  print to paper  this text "This file was created by Oracle Reports. View this document in Page Layout mode"
    How to able do it.
    Tanks for reply.

  • Hello! Can't open an IDML file. ID file was created in CC (10). It is a 100 page (50 spreads) doc that is one big table. It was created in CC (10) and saved as an IDML file. I have CS6 and when I try to open it, it shuts down ID almost instantly. The file

    Hello! Can't open an IDML file. ID file was created in CC (10). It is a 100 page (50 spreads) doc that is one big table. It was created in CC (10) and saved as an IDML file. I have CS6 and when I try to open it, it shuts down ID almost instantly. The file was created on a MAC and I am trying to open it on a MAC. Any/all advice is greatly appreciated as I am up against a deadline with this unopened file! Many thanks in advance, Diane

    There's a good chance the file is corrupt. As whomever sent it to you to verify it opens on their end.

  • This file was created with a newer version of Adobe After Effects

    I downloaded the trial version of Adobe After Effects last night and spent a lot of time learning how to use the product, created my first tracking face on a body in a video.
    This morning when I tried to open the project I got an error message: After Effects Error: this file was created using a newer version of After Effects [3.0 (unknown)] -- time to upgrade your application!
    What should I do?

    Sounds odd. If you created it in CS6 it should open just fine in that same version. chances are that the project fiel is simply damaged. Impossible to tell without actualyl seeing the file.
    Mylenium

Maybe you are looking for

  • Problem with Hyperlink Behavior

    Hi all. In my lasts posts i was trying to make a dropdown menu with some properties, this menu, is activated with the onclick event, in a table, the menu works fine with an image component and his onclick action, shows, and dissapear as i want, the t

  • I cannot get any content to print, only the page headers print

    Ever since I updated Firefox to 3.6, only the page headers print when I try to print something. This does not happen with IE. Everything else works fine with Firefox, and if I copy the contents and paste it into something like Wordpad etc., I can pri

  • Handling Workflow Exceptions

    What is the best way to handle exceptions in workflow? Suppose a workflow step calls a method in a business object which in turn calls a function. Now an exception is raised in the function, the workflow just sits at that step with an "In Process" st

  • Arabic text on 6230i

    A friend of mine, living in the United Kingdom, has purchased a 6230i and wishes to text in Arabic. I cannot find any downloads on the nokia website. If anyone can give me some ideas where to look I would be very grateful.

  • Scanner Recommendations for Professional Output

    Hello All, I hope I am putting this in the correct forum, if not PTI and I will move upon any notice. I have a friend who is looking for a scanner to use for scanning photos and retouching in Photoshop. This person is very excating. She just bought a