|
Answer» Hello all,
I have RETURNED with yet ANOTHER batch problem. I need to ask the user to "ENTER their name" which I can then store as a %user% variable to later implement in a command.
For example after the user inputs the name, the program can then do: Code: [Select]cd C:\programfiles\uniquenames\%user%\home So, I have no idea where to begin. Thanks in advance.Code: [Select]set /p user=Name:
cd C:\programfiles\uniquenames\%user%\home I think you may have to use "%user%" (with QUOTES) if there are spaces, not sure.That was exactly what I was looking for. You have SAVED me so much time!
Thanks again for all the help!
|