Sign in to follow this  
Followers 0
brooktech

Get File Properties

4 posts in this topic

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

Share this post


Link to post
Share on other sites



Moin,

take a look in the Helpfile at : FileGetTime, FileGetVersion, FileGetAttrib and FileGetSize ...

Greetz

Greenhorn

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 :D

*Well.. a little bit modified: added time!

Edited by NeoFoX

[center][font="Arial"]--- The Neo and Only --- [/font][font="Arial"]--Projects---[/font]Image to Text converterText to ASCII converter[/center]

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0