G
Guest
I need to set a password in a script but you can't be allowed to see it in
the script source code.
That leaves me with two options:
1) Have the script ask for input, and when it's typed in it mustn't show the
characters being typed in.
2) Have two files, each with one half of the password and have the script
read the password from those files.
I have no idea how to do 1) and I originally thought I could do 2) by doing
this:
FOR /f "tokens=1" %%A IN (pass1.txt) DO (SET pass1=%%A)
FOR /f "tokens=1" %%A IN (pass2.txt) DO (SET pass2=%%A)
I have now discovered that this does not seem to work...
Can anyone tell me how I can perform either of these operations?
I'm fairly new to CMD scripting...
--
Cheerio,
Lars Petersson
MCSA: Messaging
X-Posted to:
microsoft.public.windows.server.general
microsoft.public.win2000.cmdprompt.admin
the script source code.
That leaves me with two options:
1) Have the script ask for input, and when it's typed in it mustn't show the
characters being typed in.
2) Have two files, each with one half of the password and have the script
read the password from those files.
I have no idea how to do 1) and I originally thought I could do 2) by doing
this:
FOR /f "tokens=1" %%A IN (pass1.txt) DO (SET pass1=%%A)
FOR /f "tokens=1" %%A IN (pass2.txt) DO (SET pass2=%%A)
I have now discovered that this does not seem to work...
Can anyone tell me how I can perform either of these operations?
I'm fairly new to CMD scripting...
--
Cheerio,
Lars Petersson
MCSA: Messaging
X-Posted to:
microsoft.public.windows.server.general
microsoft.public.win2000.cmdprompt.admin