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

Comments

  • [code]set sndcur=%CD%
    set sdrive=%sndcur:~0,2%
    a:
    cd A:U
    %sdrive%
    cd %sndcur%
    [/code]
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!

Categories

In this Discussion