Archive for May, 2014

DEL \\%ip%\c$\IM\Deploy\%release%\* /s /q
FOR /D %%p IN (“\\%ip%\c$\IM\Deploy\%release%\*.*”) DO rmdir “%%p” /s /q

http://stackoverflow.com/questions/8328338/how-do-you-utilize-more-than-9-arguments-when-calling-a-label-in-a-cmd-batch-scr

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

7 zip commands

Posted: May 1, 2014 in Uncategorized
Tags: ,

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%\*