Jump to content

Get File Properties


Recommended Posts

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

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]

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...