command line

袁羽
2023-12-01

@echo off
::设置7z的命令行程序路径
set Sz=C:\7zip\7-Zip\7z.exe
::设置压缩包保存路径
set Save=D:\2
::设置要打包压缩的文件夹
set Com=D:\a
for /f “delims=” %%a in (‘dir /a-d/s/b “%Com%”’) do “%Sz%” a “%Save%\%%~na.7z” “%%~a”
pause


net time \10.10.168.177 /set /y

net use v: /d
net use v: \testserver\destination

 类似资料: