Operating System - OpenVMS
1753928 Members
8821 Online
108810 Solutions
New Discussion

How to find latest created file in VMS ?

 
DECxchange
Regular Advisor

Re: How to find latest created file in VMS ?

Hello,
About how many files per day are being created in that directory?

If you don't want to do a command file, you can get a list of recent files like this:

$ dir/since/size/date
This would be all files from today
$ dir/since=12:00/size/date
That would be all of the files since noon. Or you could put any time in the /since= qualifier.

$ dir/since=19:44/size/date
Or whatever time you want.

So if this narrows down the number of files you can see on, say, one screen, you can easily see which files were created last.

Also, $ dir/date=all or dir/modified will tell you when the file was modified if it was not necessarily created today.

You might want to check out
$ help directory

for all of the command qualifiers available to DIR.