Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Touch File
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00602053
Message ID:
00602258
Vues:
35
>
>Oh yeah? So you can do a function...endproc and a procedure...endfunc? That is the two keywords are interchangable?
>

That is correct...they are interchangeable

>>and the programs need to be in your path (rather than having the path >hardcoded in the program itself).
>
>They are all in the same path, that was one minor problem. The windowstime.zip file had contime in a subdirectory called \Aris\IconEdit...but that's been fixed.
>

Ahh...I have all the .prg files in the same directory (with other utilities), in my path

>>< Update >
>>Is it your intent to only change the accessed date? This date changes often...it changes even by viewing the properties of a file in My Computer.
>
>I only want to change the modified date, really. I'm implementing a version checking program (yes I was originally checking the programs build verision) but < SNIP >

>The thrust of my question is, what else besides typing these lines, do I need to have inorder to change a file's last_modified timestamp to the current time.
>

Well, the modified date is the 3rd parameter, not the 4th. And it only seems to work if you pass it again in the 4th. See below.

Also, I'm assuming the .exe that is attempting to do the modifying is *not* archiver.exe. It can't modify itself...

*****
lcfile = 'C:\Matt\Discovery\LB_400\LogBook\archiver.exe'
ltModified = datetime()
SET PROCEDURE TO FileTime ADDITIVE
oFileTime = CREATEOBJECT("FileTimes")
llresult = oFileTime.SetFilesTime(lcfile, , <b>ltModified, ltModified</b>)
>*****
>
>and if nothing, why isn't it working? Right now, I have this biddy (above 5 lines in a program called main.prg) in a project, with all the 5 programs that came zipped with AboutTime and I make it all into an .exe When I run the .exe it does not update archiver.exe's modified timestamp.
>
>ty
>m
Steve Gibson
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform