09-06-2010 02:58 AM
Hi, I am just using "rename" function to rename my folder name. Normally this function goes well.
However, if user already opens a files in the folder(maybe sub-folder) using some other program, this rename will always cause a run-time error.
How can I avoid this?
Thanks in advance
Gavin
09-06-2010 03:04 AM - edited 09-06-2010 03:05 AM
This is an error raised from the OS and not dependent from CVI; you can receive the same error even in Explorer (but only if the file is opened for modifications) and depends on the fact that the OS may come into trouble while saving a file after folder rename, so it forbids it.
I suppose the only resource you have is to warn the user to close the file before your program can continue.