k***@gmail.com
2013-04-05 00:42:41 UTC
how to code this in java not script but compiling
this is in cmd
set home=%~dp0
set file_to_find=A_job-2-do_
set when_done=B_Job-done
for /f "delims=" %%A in ('dir /s/b/o:n/d:-a ^"%home%%file_to_find%^"') do (
for /f "delims=" %%z in ('call rename.cmd ^"%%~A^" ^"\%file_to_find%^" "\%when_done%"') do (
for /f "tokon=1,2 delims=" %%B in (%%~A) do (
"7za.exe" a -t7z -m0=LZMA -mmt=on -mx9 -md=128m -mfb=273 -ms=e -sccUTF-8 -w"%%~dpA" "%%~B" "%%~A"
)
rename "%%~A" "%%~nx.z"
)
echo done
pause
this is in cmd
set home=%~dp0
set file_to_find=A_job-2-do_
set when_done=B_Job-done
for /f "delims=" %%A in ('dir /s/b/o:n/d:-a ^"%home%%file_to_find%^"') do (
for /f "delims=" %%z in ('call rename.cmd ^"%%~A^" ^"\%file_to_find%^" "\%when_done%"') do (
for /f "tokon=1,2 delims=" %%B in (%%~A) do (
"7za.exe" a -t7z -m0=LZMA -mmt=on -mx9 -md=128m -mfb=273 -ms=e -sccUTF-8 -w"%%~dpA" "%%~B" "%%~A"
)
rename "%%~A" "%%~nx.z"
)
echo done
pause