windows操作系统,谁能帮我续写批处理压缩命令,那位大侠指点一下!!在线等着急啊
for/f"eol=;tokens=1,2,3delims=,"%%iin(dblist.txt)doexpsystem/boentel_system_2010_01@%...
for /f "eol=; tokens=1,2,3 delims=, " %%i in (dblist.txt) do exp system/boentel_system_2010_01@%%ioradb file=e:\db\%%i.dmp log=e:\db\%%i.log owner=(%%j,%%k)
谁能帮我把下面这句"C:\Program Files\WinRAR\winrar" m -m5 "%date%.rar" "%date%"添加到上面的批处理命令里,能让它运行? 展开
谁能帮我把下面这句"C:\Program Files\WinRAR\winrar" m -m5 "%date%.rar" "%date%"添加到上面的批处理命令里,能让它运行? 展开
2个回答
展开全部
@echo off
For /f skip^=2^ tokens^=2^ delims^=^" %%i in ('Reg Query "HKEY_CURRENT_USER\Software\Classes\Applications\WinRAR.exe\shell\open\command" /ve') do Set winrar=%%i
Set rarpath=%winrar:winrar.exe=%
start "" "%rarpath%"
cmd /k " "%rarpath%rar.exe" a 3 1.txt 1.rar"
pause
::无论rar在哪里,都直接调用进行压缩。
::将当前目录中的1.txt 1.rar,压缩为3.rar
For /f skip^=2^ tokens^=2^ delims^=^" %%i in ('Reg Query "HKEY_CURRENT_USER\Software\Classes\Applications\WinRAR.exe\shell\open\command" /ve') do Set winrar=%%i
Set rarpath=%winrar:winrar.exe=%
start "" "%rarpath%"
cmd /k " "%rarpath%rar.exe" a 3 1.txt 1.rar"
pause
::无论rar在哪里,都直接调用进行压缩。
::将当前目录中的1.txt 1.rar,压缩为3.rar
展开全部
for /f "eol=; tokens=1,2,3 delims=, " %%i in (dblist.txt) do exp system/boentel_system_2010_01@%%ioradb file=e:\db\%%i.dmp log=e:\db\%%i.log owner=(%%j,%%k)
"C:\Program Files\WinRAR\rar" a -m5 "%date%.rar" "%date%"
"C:\Program Files\WinRAR\rar" a -m5 "%date%.rar" "%date%"
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询