Hi there - a way to use the %UserName% in a batch file?

I want to check if a user has logged on (W2K pro) before a script
executes...

So as an example...

IF EXIST "c:\documents and settings\%UserName%" GOTO END
Net use z: \\server\share
:END

Is there a way to do this?

  D




------
You are subscribed as [email protected]
Archives: http://www.swynk.com/sitesearch/search.asp
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to