>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only