Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
batch file to get date/time of file
Name: rjgandhi Date: January 3, 2005 at 10:08:01 Pacific OS: w2k -XP CPU/Ram: 512 MB
Comment:
I've large network with over 200 servers. There is one bat file (d:\abc\xy\*.bat) exists on all servers in network. I need to get the date and time of this bat file.
Please help me to create bat file to check this file. Thx RG
Name: twdave Date: January 3, 2005 at 10:48:23 Pacific
Reply:
here is something very basic:
Dim FSO,File Dim Date1 set FSO=CreateObject("Scripting.FileSystemObject") Set File=FSO.GetFile("c:\AdminModel.txt") Date1=File.DateLastModified wscript.echo Date1
Copy this information into a VBS document (file.vbs). Double-click the file and it will provide a message box showing the date and time.
0
Response Number 2
Name: twdave Date: January 3, 2005 at 10:51:49 Pacific
Reply:
Sorry - amend the Set File=FSO.GetFile("c:\AdminModel.txt") line to have the file name and location you want.
0
Response Number 3
Name: rjgandhi Date: January 3, 2005 at 12:14:47 Pacific
Reply:
Thanks for script but it is not meant to run on network. I need a output log where it should indicate server name and date & time of the file.
rjgandhi
0
Response Number 4
Name: Mechanix2Go Date: January 3, 2005 at 23:38:14 Pacific
Reply:
Having this in more than one forum will not help.
But it may turn off the very folks who could help.
Summary: Hi, I have text file that I need to monitor, on a remote computer, if it was modified. How can I check the date/time of a text file? Any help with a batch or a VBScript file would be appreciated. Tha...
Summary: Hi! In a batch file I have to parse a string like that: "sce_spe/30_COR_SP1/.../@30_SP1.0" How can I get the part behind the "@"? (Note: the part before the @ is variable) Is there a possibility to ge...
Summary: With cmd extensions enabled you get many options which make BATs much more versatile. You can get help with: for /? set /? But the 'help' is rather terse. One which will be of interest for your purpos...