欢迎光临小站,愿能为您提供帮助与启发,热爱分享、享受分享、乐于分享,让我们携手共同进步。
@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