batch script to open an command window and run directory scan -


i'm trying create batch script opens a

1) command window

2) command prompt pointing c (come root)

3)run dir /s command performs extensive scan of system starting root.

the window should not dissapear.

but i' m able come come c prompt , command window disappears, have posted script here . please let me know i'm going wrong .

start cmd /c cd / && dir /s 

edit : issue fixed

answer

 start cmd /c  cd / && dir /s 

you can use cmd /k switch pass in commands, such as:

cmd /k "pushd c: & cd\ & dir /s" 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -