Friday, October 9, 2015

windows - Fix location to run this script?

I have a batch file from Karan.


How to fix location to run this batch my file location is C:\proview\upload\EJ_daily_Temp.


path=c:\program files\7-zip;%path%
for /f "tokens=1,2 delims=_" %%i in ('dir/b *_ej.zip') do ren %%i_%%j %%i.zip
for %%i in (*.zip) do 7z x %%i -o*
    
for /r %%x in (K*.jrn) do ren "%%x" ??????+????????.jrn
for /f "delims=" %%d in ('dir /ad /b') do @rd /q /s "%%d"

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...