I am trying to copy a file from Windows\System32 folder into my project folder but when I try to do that using copy command in system exec.vi, I get the following error : The system cannot find the file specified.
Does anyone know how to resolve this? I have attached the vi here.
Solved! Go to Solution.
And what OS are you using? I remember reading something recently about trying to put files in the System32 directory does not work directly in new versions of Windows.
I am also curious why you can't use native LabVIEW code to copy a file.
The file does exist in the system32 folder and the path I entered is also correct. I think the issue is that the file is an .exe file.
If I use LabVIEW built-in function to copy the file, then also I get the same error message that the file does not exist.
I am running Window 7 but I am not trying to put anything in System32 directory. I am trying to copy an exe file in System32 dir to some other directory.
Windows\System32 has many very vital files that Windows needs, so it puts extra protection on it. If there's a file in there that you want LabVIEW to read, see if you can copy the file (using Windows Explorer) to your "My Documents" folder and try to read it from there.
I can copy the file from windows explorer and can also copy the file using copy command in commandline but I am not able to copy it using system exec.vi.
Just for grins and giggles, create a VI that uses the builtin copy node but put controls on both path inputs and Browse to the paths. Is there any difference. Also, are you sure the destination directory is present?