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
Post a Comment