open command prompt window and change current working directory

后端 未结 7 843
时光说笑
时光说笑 2021-02-01 14:16

I\'m terribly new to scripting on windows. Using windows 7 64.

I\'m trying to make a .bat file that I can double click, and have it open a command prompt and automatical

相关标签:
7条回答
  • 2021-02-01 15:02

    You can create a batch file "go-to-folder.bat" with the following statements:

    rem changes the current directory
    cd "C:\my\destination"
    rem changes the drive if necessary
    c:
    rem runs CMD
    cmd
    
    0 讨论(0)
提交回复
热议问题