1.

Solve : Batch file to copy file to users local?

Answer»

I'm not sure if my question is in the right forum here, but since Batch files are a bit DOS-related i'm gonna give it a try.

I have a batch file that is set to copy a file from it's current LOCATION to a folder on a users harddisk.
That works like a charm as long as it's not used over a network.

That's in FACT my question. How can i make the following code work over a network (the bat-file is on a SERVER and should copy a file existing in the same folder as the .bat to the c:\windows\Temp folder of the user).

Code: [Select]XCOPY "database.mdb" "C:\windows\Temp\*.*" /y/q/r

Any IDEA's are more then welcome.Try this

Code: [Select]xcopy "\\servername\sharename\directory\database.mdb" %temp% /y/q/r



Discussion

No Comment Found