Is there any way to get the username of the logging in person for use in the batch file. like mapping a drive to there home directory by there username?
If the machine the script is running on is a NT\2000, you can use something like "net use p: \\servername\sharename\%username%". Otherwise it would be best to use something like kixstart. It provides a lot more scripting power.
BTW. You can reference any environment variable by putting the % signs around the environment variable. You can view the available environment variables by typing "set" at a command prompt.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.