0

I am very new to batch scripting. I am trying to prompt a user to "Enter directory path containing files to be converted:". Once they enter that I want to prompt them to "Enter directory path to save files to once converted:". My code currently prompts the first question, but then closes before the user can input anything.

1
  • Please post your code Commented Aug 20, 2013 at 21:29

1 Answer 1

2
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
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.