28 Jun 2010

Sql Server Agent Copy File To remote server on LAN

A little batch file that worked for me, to copy a file from one windows server to another on the same LAN.


NET USE Z: \\nearbyserver\c$ /u:nearbyserver\myuser mypasswd
XCOPY c:\my.csv z:\ /Y
NET USE Z: /DELETE

No comments:

Post a Comment

Comments are very welcome but are moderated to prevent spam.

If I helped you out today, you can buy me a beer below. Cheers!