-
need assistance Please!!! Copying files from server
I would like to be able to copy something from a location on a server to the local machine, if it exists, Here is what I have
Myfile = File(“//isilon2/data/MyFile.txt”);
MyFolder = Folder(“c:\\!work”);
if(Myfile.exists){
Myfile.copy(MyFolder);
}If I run this script and replace the server location with another local location it copies fine.
And I can put in alert notifications in the ‘if’ loop and it will return the appropriate message if script exists or not. But will not copy from the server location to the local machine.
please help!!!
Sorry, there were no replies found.