- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I would like to be able to delete all the files in a specified directory that are more than 7 days old. I've been given an example of a VB program that can do this sort of thing but am unable to work out the equivalent in Visual Fortran. Does anyone know how to do this?
With many thanks in advance,
Mike
With many thanks in advance,
Mike
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
DFLIB:
FINDFILEQQ / GETFILEINFOQQ / DELFILESQQ
Win32:
FindFirstFile / FindNextFile / DeleteFile / FindClose
I believe you'll find some samples on the Forum for the latter (additionally,you'll have to test WIN32_FIND_DATA.ftCreationTime,cast it to an integer(8)and perform 64-bit arithmetics. See also GetLocalTime, SystemTimeToFileTime).
Jugoslav
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page