@echo off
echo 准备启动同步。。。
net use \\WIN-AJH8QENQQGK "123456" /user:Administrator
Z:\SyncToy\SyncToyCmd.exe -r lz2
echo 取日期、时间变量值
set yy=%date:~0,4%
set mm=%date:~5,2%
set dd=%date:~8,2%
set hh=%time:~0,2%
set mn=%time:~3,2%
set ss=%time:~6,2%
set filename=%yy%%mm%%dd%%hh%%mn%%ss%.txt
echo 创建文件
echo 输入文件内容>Z:\%filename%
echo 启动完毕,准备退出。。。
pause