Jump to content

Recommended Posts

Posted

Here is what I am currently using in a batch file:

net user <username> <password>

my problem is that once in a while the password has special characters in it (like spaces, &, etc). It causes the command to set passwords different from what was intended. Is there a way to have such passwords using net user?


Posted

Well I am not a big batch scripter, so help me out here. I know that when you call a program from a command line the OS sends the parameters as an array of strings to the program. So when I put quotes around ANYTHING at the command line, does the OS detect that and consider it one parameter, and hence the program itself receives it as one parameter? That would explain why I couldn't find ANY documentation regarding using quotes with the net user command.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...