batch file

Status
Not open for further replies.

IBMan

Daemon Poster
Messages
1,084
I want to set a variable based on what another line starts with

basically i want the batch file to ask for a specified user name(i'd be using the set command in windows xp)

basically what i want it to do is take my input say...

7lastnamefirstinitial

then the next part would be

Code:
if username begins with X then create user's home directory in \\server\homedir\200X" both X's referring to the same thing of course

thanks for any help

if this is confusing for anyone let me know and i'll try to explain
 
like if i were to create a batch file"

Code:
net user /add 7%lastname%%firstinitial% %Password% home:\\fs1\homedir\"200%first character of username%\%username%

essentially being

Code:
net user /add 7lastnamef /12345678 /home:\\fs1\homedir\2007\7lastnamdf
 
Status
Not open for further replies.
Back
Top Bottom