LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems in rename folder using CVI

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

0 Kudos
Message 1 of 2
(3,048 Views)

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.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 2
(3,047 Views)