Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
File in use
Message
De
18/10/2001 09:23:50
 
 
À
18/10/2001 09:12:56
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Titre:
Divers
Thread ID:
00569634
Message ID:
00570202
Vues:
34
This message has been marked as the solution to the initial question of the thread.
>Well, I was half wrong.
>The function is working but, some type of file (right know I've only test with text file and MSWord files) seems to no be locked when you open them.
>I have done my test with a Word file.
>So I open the file (from Word) and then try to check if I was able to open the file from VB. I've receive an error message telling me "Permission Denied". Fine.
>But, If I do the same thing with a .txt text file, I don't receive any error message.
>So anyway, I decide to implement this procedure (cause I'm not copying text files anyway). And if any error happen, I just roll back by deleting the copied
>files.
>
>Thanks J.
>
>Patrice Merineau

Do you open the text files with Notepad?

Notepad will open the file, put the contents on the editable area and then close the file, so you would not get an error when trying to open the file exclusive. If you need to test text files open them in Word too.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform