The below seems to work as well: If %username%==Administrator set PVXFIDO=T101 Eliminate the "then" and the quotes around everything unless necessary...use an equals sign for the PVXFIDO variable setting. Hope this helps. -Dave Melczer dmelczer@xxxxxxxx -----Original Message----- From: Dirk Blose [mailto:Dirk.Blose@xxxxxxxxxx] Sent: Wednesday, January 07, 2004 12:12 PM To: thin@xxxxxxxxxxxxx Subject: [THIN] Re: OT - Really stupid question. Try the following IF "%USERNAME%" == "Administrator" THEN SET PVXFIDO "T101" That should do it. Dirk Blose, MCSE, CCA Lead Technical Analyst (919) 765-4791 dirk.blose@xxxxxxxxxx >>> rlambert@xxxxxxxxxxxxxxx 01/07/04 12:15PM >>> 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.myonlyone.com/ ******************************************************** This Week's Sponsor - Chip PC - The Next Step in Thin Client Technology. Choose from a wide range of options offering industry-leading, innovative thin client solutions http://www.chippc.com/products/hardware/index.asp ********************************************************* Useful Thin Client Computing Links are available at: http://thethin.net/links.cfm *********************************************************** For Archives, to Unsubscribe, Subscribe or set Digest or Vacation mode use the below link: http://thethin.net/citrixlist.cfm ********************************************************************** Please be advised that this transmittal may be a confidential attorney-client communication or may otherwise be privileged or confidential. If you are not the intended recipient, please do not read, copy or re-transmit this communication. If you have received this communication in error, please notify us by e-mail (postmaster@xxxxxxxx) or by telephone (call us collect at 212-403-4357) and delete this message and any attachments. Thank you in advance for your cooperation and assistance. www.wlrk.com ********************************************************************** ******************************************************** This Week's Sponsor - Chip PC - The Next Step in Thin Client Technology. Choose from a wide range of options offering industry-leading, innovative thin client solutions http://www.chippc.com/products/hardware/index.asp ********************************************************* Useful Thin Client Computing Links are available at: http://thethin.net/links.cfm *********************************************************** For Archives, to Unsubscribe, Subscribe or set Digest or Vacation mode use the below link: http://thethin.net/citrixlist.cfm