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:
00602317
Vues:
28
>Well, I did find a small error in your code, but even ater changing endproc->endfunc on line 25 and fixing the path for contime...it still doesn't work.
>
>I thought it might be a problem simply with changing the timestamps on the exe because foxtouch works on .txt files but not on .exe's. Take a look and perhaps you or another helpful person could point me in the right direction, in terms of using your program.
>
>******
>lcfile = 'C:\Matt\Discovery\LB_400\LogBook\archiver.exe'
>lcfile2 = 'C:\Matt\Discovery\LB_400\LogBook\myfile.txt'
>ltModified = datetime()
>ltCreate = datetime()
>* Retrieve a file's date/time stamps
>SET PROCEDURE TO FileTime ADDITIVE
>oFileTime = CREATEOBJECT("FileTimes")
>llresult = oFileTime.SetFilesTime(lcfile, , , ltModified)
>llresult = oFileTime.SetFilesTime(lcfile, , , ltModified)
>*******
>I essentially, c&p'ed precisely what you had in the abouttime.doc...Am I missing something?
>
>ty
>m
Nope, and I've just tested this again against both exes and txts and it works fine. Unfortunately, when I developed this it was (and was and is tested) against a FAT32 drive. I'll test against an NTFS drive in the morning. As I told Steve, I fell victim of a power outage before I could test and response against that file system.

The ENDPROC/ENDFUNC is a typo (and will be corrected) but does nothing in terms of the usability in VFP 6.0 or 7.0.

One thing of note, however, there are no guarantees with a network OS. They have their own limits as to these settings.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform