Scripts to check files in a folder
I need to check that a imp file has been created every working day on a network file share. Simon Wilson
June 4th, 2012 6:04pm

Hello Simon, Use forfiles command to identify when the files have been created/modified. So, create your own batch file and use it accordingly. Below article describes you more about forfiles command. http://technet.microsoft.com/en-us/library/cc753551(v=ws.10).aspx A sample batch file to display the files created today. @echo off forfiles /d +6/5/2012 pause Regards, Ravikumar P
Free Windows Admin Tool Kit Click here and download it now
June 4th, 2012 11:23pm

Do you know of any methods using, VBA Script ?Simon Wilson
June 5th, 2012 2:40am

Hi Jacob, I suggest you ask this question in the Microsoft Script Forum for further discussion. The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding. Thanks & Best Regards,Mohammed Imtiyaz Ali
Free Windows Admin Tool Kit Click here and download it now
June 5th, 2012 5:30am

Hi Jacob, I suggest you ask this question in the Microsoft Script Forum for further discussion. The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding. Thanks & Best Regards,Mohammed Imtiyaz Ali
June 5th, 2012 5:37am

Do you know of any methods using, VBA Script ? Simon Wilson Below is the syntax of simple VB script to display files created today.So copy it in note pad and save it as *.vbs file. Place this in share folder where you want to know the files created today. on error resume next set objshell = createobject("wscript.shell") objshell.Run("%comspec% /K FORFILES /D +6/5/2012") Note:*** I recommend you run any scripts in test environment before testing it in live environment. Regards, Ravikumar P
Free Windows Admin Tool Kit Click here and download it now
June 5th, 2012 7:28am

yes, I suggest you ask in script forum.Jeff Ren TechNet Community Support beneficial to other community members reading the thread.
June 11th, 2012 3:21am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics