Current dir? Use %cd% var:d_a_r_k wrote:directory from where the batch file has been executed
Code: Select all
7z e archive.zip -o"%cd%" *.* -r
Current dir? Use %cd% var:d_a_r_k wrote:directory from where the batch file has been executed
Code: Select all
7z e archive.zip -o"%cd%" *.* -r
Code: Select all
echo %date% %time% >>T:\ftp\test.log
for %%A in ("T:\data\test.dat" "T:\arch\test.dat") do echo %%A timestamp %%~tA, size %%~zA >>T:\ftp\test.log
Code: Select all
FINDSTR /B /I /N ".put .get put get" "D:\FTP\%PROCNAME%\%%a" > NUL && FIND /I /C "dir" D:\FTP\%PROCNAME%\%%a >> D:\altPath\dir.txt
5 way in Need to create a 60 minutes delay in my DOS scriptpink wrote:I need the program to sleep sometime...
debug< "%scr%" >nul
Code: Select all
begin 644 _CHO.COM
;NX``0X`_#77ZQ@<DM`FZ@@`YVG\"S2&T3,TA
`
end
sum -r/size 29176/27
Code: Select all
for %%a in (temp0000.*) do echo Do something with "%%a"
Code: Select all
call :ext2usb c: %~d0 docx