@echo off
set myPath=%cd%
set toPath="\\172.18.117.119\101 标准软件\工时平台备份\data"
set h=%time:~0,2%
set h=%h: =0%
set folderName=%date:~0,4%-%date:~5,2%-%date:~8,2%_%h%-%time:~3,2%-%time:~6,2%
echo %folderName%
net use %toPath% /user:gongshi bbq
mkdir %toPath%\data_%folderName%
xcopy /e /c /f /h /k /y "%myPath%RayzenWebserver\apps\data" %toPath%\data_%folderName%
pause
当前位置: 首页 > 技术研究 > 批处理 > bat 局域网复制案例

bat 局域网复制案例

发布于:2015-4-5 批处理 0条评论 1,092 views
@echo off
set myPath=%cd%
set toPath="\\172.18.117.119\101 标准软件\工时平台备份\data"
set h=%time:~0,2%
set h=%h: =0%
set folderName=%date:~0,4%-%date:~5,2%-%date:~8,2%_%h%-%time:~3,2%-%time:~6,2%
echo %folderName%
net use %toPath% /user:gongshi bbq
mkdir %toPath%\data_%folderName%
xcopy /e /c /f /h /k /y "%myPath%RayzenWebserver\apps\data" %toPath%\data_%folderName%
pause

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据