Funny but I've tried to change directory in a command prompt by simply typing:
CD D:\
and sure enough this does not work.
To change to new directory add /D  (case insensitive)
  
cd /d  d:\
 or just
D: 
Some reserved variables:
%~dp0  -> this will contain the path to the script
%0      -> this will hold the path+the name of the script
%1 up to %9   -> this in the script will pick up arguments that may have been passed to the script when it was launched from command line
 
No comments:
Post a Comment