Copying a file from a remote or server location
Posted: April 27th, 2010, 9:59 am
I would like to copy a file from a server share to the local drive. I can already copy a file from drive to drive and folder to folder locally. In the java script toolkit it makes reference to the path like this
If a path name starts with two slashes (or backslashes on Windows), the first element refers to a remote
server. For example, //myhost/mydir/myfile refers to the path /mydir/myfile on the server myhost.
also
//myServer/share/file
my copy script is simple like
myfile = File("c:\\File.txt);
myfile.copy("D:\\);
this works and copies the file I just need to know the proper syntax to insert the server location in the myfile object that is designated any help would be appreciated
thanks in advance
If a path name starts with two slashes (or backslashes on Windows), the first element refers to a remote
server. For example, //myhost/mydir/myfile refers to the path /mydir/myfile on the server myhost.
also
//myServer/share/file
my copy script is simple like
myfile = File("c:\\File.txt);
myfile.copy("D:\\);
this works and copies the file I just need to know the proper syntax to insert the server location in the myfile object that is designated any help would be appreciated
thanks in advance