Batch file specifically set command help

 
0
 

I'm in a class and we discussed what set /p does, but I wasn't paying close attention, I was wondering if anyone could explain to me what set /p does and an example of how I can use it in a batch file for dos

Featured Replies in this Discussion

  • ... is a ... command with a 'prompt' flag fed to it, meaning that it will prompt the user for a value to set the variable to. Example (untested): ... To answer your second question, check out ... .
    Post Contains: Links Code
  • A good site for all things related to command line scripting is SS64.com
 
0
 

By the way which is a good website for learning tutorials about batch files for linux and windows

 
1
 

set /p is a set command with a 'prompt' flag fed to it, meaning that it will prompt the user for a value to set the variable to. Example (untested):

set /p "myvar=Enter a value: "
echo You said %myvar%

To answer your second question, check out DosTips.

 
1
 

A good site for all things related to command line scripting is SS64.com

Question Answered as of 1 Year Ago by cuzintone and Assembly Guy
You
This question has already been solved: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: