echo Blah 123456789012345^|echo Y
echo Blah 123456789012345 ^|echo Y
It prints the syntax of the command. Same as if I used the wrong syntax.
"The correct syntax of this command is . . . blah blah"
LanMan only does allow <15 but for local user accounts, which is what the script is for, allows up to 127 characters. I want to be able to echo the variable in as a password and allow the script to continue to run without user input; it is part of a larger automated script.
the script pulls the username and password from another program that printf'd it to a file.
I am just getting hung up on this single stupid little part.Code:. . . set ="%USER%" set ="%PASS%" echo Y|net user "%USER%" "%PASS%" /ADD net localgroup "%GROUP%" "%USER%" /ADD . . .
The entire script requires no user input, and having a big batch file pop up and ask the user to push 'Y' then return would be an enormous hassle and is not possible.




Reply With Quote