Sign in to follow this  
Followers 0
friends

Can this be done ?

4 posts in this topic

#1 ·  Posted (edited)

Syntax : FileGetTime ( "filename" [,option] )

Example in doc :

$t =  FileGetTime(@Windowsdir & "\Notepad.exe", 1)

If Not @error Then

    $yyyymd = $t[0]& "/" & $t[1] & "/" & $t[2]

    MsgBox(0, "Creation date of notepad.exe", $yyyymd)

EndIf

Well.... i wonder if the FileGetTime() example above can be used

with wildcards ? :)

What I wish to do is something like below :

$t = FileGetTime(@Windowsdir & "\*.bin", 1)

Thanks...

@Jon : If this cannot be done, is it possible to change it usable with wildcards ?

Edited by friends

Share this post


Link to post
Share on other sites



Use FileFindFirstFile/FileFindNextFile to search (It supports wildcards). Use the files returned from that to do your FileGetTime() on.

Share this post


Link to post
Share on other sites

Use FileFindFirstFile/FileFindNextFile to search (It supports wildcards).  Use the files returned from that to do your FileGetTime() on.

<{POST_SNAPBACK}>

Valik, mind to show me a working example ?

That would be helpful for me to understand it.

Thanks in advance...

Share this post


Link to post
Share on other sites

Check the example I wrote before seeing that Valik already answered.

In this same forum!

None should double post. :|

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