09-20-2012 12:25 PM
hi ,
i want to copy file from path to another path,i try 2 methods:
1-the first i use the copy function but i still have an error with it ( duplicate path) .but the file is copied.
2- the second, i use call library function node but it still give zero result(the file is not copied to the new path)
my code is so large and necessite many files to be attached,so i attached an image of a portion of my code
Solved! Go to Solution.
09-20-2012 12:32 PM
What is the reason for you to use scenario #2? What DLL are you calling?
And how?
What are the exact input values in scenario #1?
09-20-2012 12:48 PM
for the scenario 2 ,i just try another method to have a solution with no error, i search in digital.ni.com 'how to copy a file" and i find this method.
for the scenario 1,i will send the code,but it will not run because it need to load another vi
09-20-2012 01:17 PM
Did you look at the Help for the Copy File function? It has an "overwrite" input.
Note: Your code uses the Current VI Path function. Be careful with this function. Why Does My Executable Not Work When Using the Current VI's Path Constant?
09-20-2012 01:34 PM
omg it's ok, a true constant o the overwrite solve my problem
thanks to all