I've write a simple file to get input from cmd.
if I call C:\>test
The program should ask "Please enter your name:"
Ater that it show the name out
If I call C:\>test myname
It show the name out
Here is what I've done:
if .%1 == . goto getname
SET /P pass= Please enter your name:
set %1 = %pass%
It's ok if I call C:\>test myname
But error happens when I call C:\>test.
Can SO help me on this??