How do I create the following batch file?

How do I create a batch file that dose the following
-Switch current directory to A:U
use the cd command. Make sure to note the file structure on that drive is.
-Display directory contents.
Use the DIR command
-Switch back to root directory
Use CD command with the appropriate parameters


  • [code]set sndcur=%CD%
    set sdrive=%sndcur:~0,2%
    cd A:U
    cd %sndcur%
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion