我有一个输出路径的批处理文件。如何使用Windows cmd中的批处理文件更改当前目录?
我尝试过什么:
F:\>cd my-path.bat
The system cannot find the path specified.
F:\>cd (my-path.bat)
The system cannot find the path specified.
F:\>my-path.bat | cd
F:\
The process tried to write to a nonexistent pipe.
Run Code Online (Sandbox Code Playgroud)
my-path.bat 内容:
@ECHO OFF
@ECHO F:\MyPath\
Run Code Online (Sandbox Code Playgroud)