01-13-2016 06:50 PM
Hi,
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.
01-13-2016 07:50 PM
01-13-2016 08:22 PM
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.
01-13-2016 11:55 PM
I am also curious why you can't use native LabVIEW code to copy a file.
01-14-2016 11:34 AM
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.
01-14-2016 11:35 AM
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.
01-14-2016 12:02 PM
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.
Bob Schor
01-14-2016 12:10 PM
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.
01-14-2016 01:15 PM
Create batch file to do the copy.
01-14-2016 01:38 PM
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?
Mike...