Vbscript get newest file


















It should do, I believe it handles wildcards the same way the dir command does. If you try navigating to that folder location in a cmd window and typing the command:. Does it then give you a list of the files you require?

If so then this should work ok I believe not having ever used the mget command myself! Well I tried it manually, and I am getting a No Such File or Directory message even when trying to pull just one file using the get command To continue this discussion, please ask a new question. Get answers from your peers along with millions of IT pros who visit Spiceworks. Popular Topics in IT Programming.

Which of the following retains the information it's storing when the system power is turned off? Submit ». Ghost Chili. By joining you are opting in to receive e-mail. Promoting, selling, recruiting, coursework and thesis posting is forbidden. Students Click Here.

I am really having a mental block on this. I want to identify the newest file in a specific directory. Specifically, it will be the newest NTBackup log file created during nightly backups. Since Win2k does not permit you to define the log file name, I need some way to identify it so I can save a copy elsewhere so I have more than the 10 backup logs it will maintain.

Also, once I can identify that file then I can email it to myself and a backup admin to review how the backup worked. But I can't seem to even know where to start on this one.. Any suggestions on where I might find some sample code I could adapt? Thanks inadvance. Name Else If fNewest. Thank you both for your code and taking the time to respond. Drives is a Collection.

It Provides a list of the drives attached to the system, either physically or logically. File is an Object. It Contains methods and properties that allow developers to create, delete or move a file. Folder is an Object. It Provides methods and properties that allow developers to create, delete or move folders. Drive is an object, which provides access to the properties of a particular disk drive or network share. Drives is a collection, which provides details of all the drives attached to the system, either physically or logically.

File is an Object, which contains both properties and methods that allow the developers to create, delete or move a file. Folder is an Object, which contains both properties and methods that allow the developers to create, delete or move a folder.



griterclicit1985's Ownd

0コメント

  • 1000 / 1000