Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我对批处理脚本很陌生。我试图提示用户“输入包含要转换的文件的目录路径:”。一旦他们输入,我想提示他们“输入目录路径以将文件保存到一旦转换:”。我的代码当前提示第一个问题,但在用户输入任何内容之前关闭。
set /p "SourcePath=Enter directory path containing files to be converted: " echo %SourcePath% set /p "TargetPath=Enter directory path to save files to once converted: " echo %TargetPath% pause