CMD-复制文件至远程共享目录

通过cmd将文件copy至共享目录

net use \\ip地址\ipc$ 密码 /user:用户

set today=%date:~0,4%%date:~5,2%%date:~8,2%

set jarPath=target\

xcopy /e/s/h/i/y  %jarPath%server-1.0.jar \\10.1.0.58\appserve\

echo copy at %date% %time% >>update-log.txt
pause

你可能感兴趣的:(CMD-复制文件至远程共享目录)