Computing.Net > Forums > Windows 2000 > batch file to get date/time of file

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

Reply to Message Icon

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



Sponsored Link
Ads by Google

Response Number 1
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.

M2


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Iomega Internal Zip 100 e... Keeping Net Logon running...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows 2000 Forum Home


Sponsored links

Ads by Google


Results for: batch file to get date/time of file

How to check date/time of file? www.computing.net/answers/windows-2000/how-to-check-datetime-of-file/47143.html

Batch file: How to get a substring? www.computing.net/answers/windows-2000/batch-file-how-to-get-a-substring/45903.html

w2k batch files www.computing.net/answers/windows-2000/w2k-batch-files/60499.html