A file copy from one location to another
Hello friends,
How can I copy a file from one location to another jut like a windows "copy" command from the script?
copy c:\data\file1.doc D:\backup\file2.doc
Hello friends,
How can I copy a file from one location to another jut like a windows "copy" command from the script?
copy c:\data\file1.doc D:\backup\file2.doc
Ran the PS with administrator rights and Always getting "I/O error" ![]()
"C:\\testing" is the name of the file, not the folder.
If the folder "C:\\testing" exists, there will be an error.
Change code
var bf2=new File("C:\\design\\" +"default_mesh.bin");
if (!bf2.copy ("C:\\testing" + "\\" + "default_mesh.bin")) alert(bf2.error);
else alert("OK!");
In this case, the error will be if the folder "C:\\testing" does not exist.
It is necessary to check the presence of the folder and in case of absence, create a folder.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.