brooktech Posted January 25, 2008 Share Posted January 25, 2008 Hi all, new to scripting here. I am looking for a way to get the date modified from a remote file on a server and display it in a popup box on my machine here. I have gotten as far as creating the popup box, and then getting to the directory of the file, but I do not know how to display the modified time of a file in the popup box on my machine? Any help would be greatful. Thanks, Joe Hughes Bolingbrook Hospital Support Link to comment Share on other sites More sharing options...
Greenhorn Posted January 25, 2008 Share Posted January 25, 2008 Moin, take a look in the Helpfile at : FileGetTime, FileGetVersion, FileGetAttrib and FileGetSize ... Greetz Greenhorn Link to comment Share on other sites More sharing options...
brooktech Posted January 25, 2008 Author Share Posted January 25, 2008 Thank you very much, I have just been told about the help file, but I am having some trouble getting any part of it to open. I think I have a corrupt version of the software from our network server. Thanks, Joe H Link to comment Share on other sites More sharing options...
NeoFoX Posted January 25, 2008 Share Posted January 25, 2008 (edited) CODE $t = FileGetTime("\\server\D\blaat.txt", 1) If Not @error Then $yyyymd = $t[0] & "/" & $t[1] & "/" & $t[2] & " " & $t[3] & ":" & $t[4] & ":" & $t[5] MsgBox(0, "Creation date of notepad.exe", $yyyymd) EndIf From the helplist *Well.. a little bit modified: added time! Edited January 25, 2008 by NeoFoX [center][font="Arial"]--- The Neo and Only --- [/font][font="Arial"]--Projects---[/font]Image to Text converterText to ASCII converter[/center] Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now