Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
File in use
Message
From
18/10/2001 09:23:50
 
 
To
18/10/2001 09:12:56
General information
Forum:
Visual Basic
Category:
Other
Title:
Miscellaneous
Thread ID:
00569634
Message ID:
00570202
Views:
33
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform