Search found 2 matches

by phil_jones
08 May 2013 08:44
Forum: DOS Batch Forum
Topic: Getting username to pass to Net user command
Replies: 5
Views: 3362

Re: Getting username to pass to Net user command

Squashman wrote:You are definitely confusing your variable name with your prompt string.
Read the help for the SET command. The variable name is always to the left of the = symbol.


It's just possible I may kiss you. Or buy you a beer. All working thank you
by phil_jones
08 May 2013 04:30
Forum: DOS Batch Forum
Topic: Getting username to pass to Net user command
Replies: 5
Views: 3362

Getting username to pass to Net user command

Hi I'm trying to do a batch file to ask for input of a username then pass that input to the Net user command to find out info. At the moment its coming back with all users on the domain rather than the input of the username. Any ideas, people? Thanks Phil @Echo Off set /P INPUT=uname: net user /doma...