Ryan, Wouldn't you have to have .. IF %USERNAME% == "Administrator" THEN SET PVXFIDO ="T101" cheers, Brianos -----Original Message----- From: Ryan Lambert [mailto:rlambert@xxxxxxxxxxxxxxx] Sent: 07 January 2004 17:15 To: thin@xxxxxxxxxxxxx Subject: [THIN] OT - Really stupid question. Hey all, I've got a question about very basic batch scripting (again). I have a statement in a login script that says IF %USERNAME% == "Administrator" THEN SET PVXFIDO "T101" I have also tried IF %USERNAME% == Administrator IF Administrator == %USERNAME% IF "Administrator" == %USERNAME% The syntax looks correct. It just isn't setting the variable. Thoughts? I'm embarrassed to ask this, but... :-) -- Ryan Lambert, MCP, CCA Network Engineer OnlyOne IS 1242 East 49th St. Suite 503-B, Third Floor Ph/Fax: 216-373-2757 http://www.onlyoneis.com/ <http://www.onlyoneis.com/> http://www.myonlyone.com/ <http://www.myonlyone.com/> _____________________________________________________________________ This message has been checked for all known viruses on behalf of Vivista by MessageLabs. http://www.messagelabs.com <http://www.messagelabs.com> or Email: mailsweeper.info@xxxxxxxxxxxxx Vivista formerly Securicor Information Systems for further information http://www.vivista.co.uk ********************************************************************** The information contained in this e-mail message is intended only for the individuals named above. If you are not the intended recipient, you should be aware that any dissemination, distribution, forwarding or other duplication of this communication is strictly prohibited. The views expressed in this e-mail are those of the individual author and not necessarily those of Vivista Limited. Prior to taking any action based upon this e-mail message you should seek appropriate confirmation of its authenticity. If you have received this e-mail in error, please immediately notify the sender by using the e-mail reply facility. ********************************************************************** _____________________________________________________________________ This message has been checked for all known viruses on behalf of Vivista by MessageLabs. http://www.messagelabs.com or Email: mailsweeper.info@xxxxxxxxxxxxx Vivista formerly Securicor Information Systems for further information http://www.vivista.co.uk