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:

  1. switch volume
  2. 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

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -