DEL \\%ip%\c$\IM\Deploy\%release%\* /s /q
FOR /D %%p IN (“\\%ip%\c$\IM\Deploy\%release%\*.*”) DO rmdir “%%p” /s /q
Archive for May, 2014
Delete files and folders using command line commands – cmd
Posted: May 1, 2014 in CMDTags: Remove files and folders using command line commands
0
Access more than 9 arguments in cmd, Pass all cmd arguments from one bat to other bat
Posted: May 1, 2014 in CMDTags: access more than 9 arguments using command line, cmd, pass all arguments from one bat file to other bat file
Use shift command 9 times to access the %10 argument as %1 and %11 argument as %2 … etc
Use %* to access all the arguments in any bat file and pass to other bat file.
Ex: Have following code in 1.bat
call 2.bat %*
Have following code in 2.bat
echo %*
echo %4
When you execute 1.bat 1 2 3 4 5 6 7 then it will display following output ….
1 2 3 4 5 6 7
4
http://www.dotnetperls.com/7-zip-examples
Unzip using command line –
7za x -y -aoa \\%ip%\c$\IM\Deploy\%release%\*.ZIP -o\\%ip%\c$\IM\Deploy\%release%\*