Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Network:
Windows 2008 Server
Found some code we use if its any help.
w_fh = FOPEN(w_drvpth+w_ppnme, 1) && Attempts to place a WRITE lock on the file being installed
IF w_fh < 0 && Checks to see if the file was open in WRITE ONLY mode
Jon
>Hello, I have a document management module of my application and part of it requires taking file MyFile.txt and renaming it to Last_Name_First_Name_Date.txt.
>
>I use the VFP Rename function and trap for the existence of the source and also the destination, but get caught up in situations where the user has the file open ...
>
>Anybody have any suggestions on how to handle this type of situation (or similar ones while we're at it, like maybe the original file is read-only, etc.)
>
>Thanks
>
>Kevin
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement