cmd - Execute multi command in batch -
i tried run multi-windows commands inside 1 opened window batch file.
want opened command window perform 2 things in sequence:
- switch volume
- direct directory in volume.
here's wrote:
start cmd /k c: && cd 'c:\program files (x86)\aaa\'
however, switches volume. second thing not executed.
can please show me way?
well, have @ least 2 options...: 1st, make sure && passed new cmd...
start cmd /k "c: && cd c:\temp"
2nd, use /d switch on cd "get there" in 1 step...
start cmd /k cd /d c:\temp
kr bartek
Comments
Post a Comment