I am on a w2k domain, but I am going to write a script that will map drives, install printers, config outlook profiles, but I only want to script to carry out the commands if the user has not logged on before. And the easiest way I can figure out if the user has logged on is to check for a users folder - since I need something unique to that user - otherwise when other users logon the script will not executed.
------ Dustin -----Original Message----- From: Steve Molkentin [mailto:[EMAIL PROTECTED]] Sent: July 25, 2002 5:46 PM To: NT 2000 Discussions Subject: RE: Batch file variables D, Are you running a Win2K domain? Why not script the net use to work as a part of their logon script? Why are you wanting to do it like this? More info will allow us to help you... themolk. > -----Original Message----- > From: W2K Discussions [mailto:[EMAIL PROTECTED]] > Sent: Friday, 26 July 2002 10:43 am > To: NT 2000 Discussions > Subject: Batch file variables > > > 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.unsub%% > ------ You are subscribed as [EMAIL PROTECTED] Archives: http://www.swynk.com/sitesearch/search.asp To unsubscribe send a blank email to %%email.unsub%% ------ You are subscribed as [email protected] Archives: http://www.swynk.com/sitesearch/search.asp To unsubscribe send a blank email to [EMAIL PROTECTED]
