G
Guest
Hi Im pretty new to scripting but I need help getting/setting a variable
(don't know if Im saying that right)
Basically what I want to do is have the script ask for the username and then
be able to assign it as a variable(Again, excuse me if I'm not using the
correct words).
Heres what I have now.
net use B: \\itchy\share
net use Z: \\itchy\usmt
md b:\%computername%_%1
z:\scanstate b:\%computername%_%1 /user:%1 /i:migsys.inf /i:miguser.inf
/i:sysfiles.inf /c /o /v:1 /l:b:\Logs\%computername%_%1.txt
net use B: /delete
net use Z: /delete
shutdown -l
This works great but instead of having to open command and run
bat.cmd dlinton
I want the script to ask me the username and then substitute that with the
%1 or what ever variable names.
Thanks Any help appreicaited
Donovan
Also I will gladly take suggestions on the rest of the script.
(don't know if Im saying that right)
Basically what I want to do is have the script ask for the username and then
be able to assign it as a variable(Again, excuse me if I'm not using the
correct words).
Heres what I have now.
net use B: \\itchy\share
net use Z: \\itchy\usmt
md b:\%computername%_%1
z:\scanstate b:\%computername%_%1 /user:%1 /i:migsys.inf /i:miguser.inf
/i:sysfiles.inf /c /o /v:1 /l:b:\Logs\%computername%_%1.txt
net use B: /delete
net use Z: /delete
shutdown -l
This works great but instead of having to open command and run
bat.cmd dlinton
I want the script to ask me the username and then substitute that with the
%1 or what ever variable names.
Thanks Any help appreicaited
Donovan
Also I will gladly take suggestions on the rest of the script.