I should be the one appologizing... Today I'm having brain farts...it happens. Anyways, yes you can modify environment varibles with the auotexec.bat / .nt files to modify your "dos" or 16-bit sessions. However, with some registry changes, it looks like it might be possible to get the autoexec.bat file to work similarly to how it used to work for all the 16-bit OS's. I may be wrong though. With that said... Frankly, I've gotten so wrapped up in trying to say that I was right (when I was wrong), that I have forgotten what we were trying to accomplish here. But anyways take a look at this... Here is some info: Article 1: Environment Variables in Windows NT The information in this article applies to: Microsoft Windows 2000 Server Microsoft Windows 2000 Advanced Server Microsoft Windows 2000 Professional Microsoft Windows NT Server 3.1 Microsoft Windows NT Server 4.0 Microsoft Windows NT Workstation 3.1 Microsoft Windows NT Workstation 4.0 This article was previously published under Q100843=20 There are three levels of environment variables in Windows NT; the system environment variables, the user environment variables, and the environment variables that are set in the AUTOEXEC.BAT file. There are also some predefined environment variables that are set when the user logs on. This article discusses the following topics:=20 System environment variables User environment variables AUTOEXEC.BAT environment variables How environment variables are set How the path is built Changing user environment variables using control panel=20 System Environment Variables System environment variables can be viewed from Control Panel by choosing the System icon. These variables are always set no matter who logs on and they cannot be changed by any user.=20 There are a few additional predefined environment variables that are set when the user logs on that do not appear in the System dialog box:=20 USERNAME USERDOMAIN NTVERSION (not available in Windows NT 4.0 anymore) WINDIR OS PROCESSOR_ARCHITECTURE =09 values: x86, MIPS or ALPHA=20 PROCESSOR_LEVEL =09 values for x86: 3, 4, 5 values for MIPS: 3000, 4000 values for ALPHA: 21064=20 HOMEPATH HOMEDRIVE HOMESHARE =09 These three environment variables are set based on the value of the home directory. The user's home directory is specified in User Manager (Choose Profile and Properties). If the home directory uses universal naming conventions (UNC), then they will have the following values:=20 HOMESHARE=3D\\<server name>\<share name> HOMEPATH=3D\<path> = HOMEDRIVE=3D<drive letter>:=20 If the home directory is a local path such as c:\nt then they will look like this:=20 HOMEDRIVE=3Dc: HOMESHARE=3D HOMEPATH=3D\nt=20 All above environment variables are always present and therefore may be used in log on scripts.=20 User Environment Variables User environment variables can be viewed from Control Panel as well. The user may add, delete or modify the environment variables in the User Environment Variables for User field. These variables take precedence over system environment variables. The user path is appended to the system path.=20 AUTOEXEC.BAT Environment Variables All environment variables and the paths set in the AUTOEXEC.BAT file are used to create the Windows NT environment. Any paths in the AUTOEXEC.BAT file are append to the system path.=20 How Environment Variables Are Set Environment variables are set in the following order:=20 System variables AUTOEXEC.BAT variables User variables=20 How the Path Is Built The Path is constructed from the system path, which can be viewed in the System Environment Variables field in the System dialog box. The User path is appended to the system path. Then the path from the AUTOEXEC.BAT file is appended.=20 Note: The environment variables LibPath and Os2LibPath are built the same way (system path + user path + AUTOEXEC.BAT path).=20 Changing User Environment Variables Using Control Panel User environment variables can be added, changed or deleted from Control Panel. There is no need to reboot after making any of these changes. Changes take effect immediately after exiting the System dialog box.=20 The next application you start will use the new settings. All other applications running before the changes were made will not recognize the changes.=20 Last Reviewed: 5/6/2003=20 Keywords: kbenv KB100843=20 Article 2: Windows NT usualy does have an AUTOEXEC.BAT and CONFIG.SYS, but doesn't use them by default. To use AUTOEXEC.BAT to set environment variables in command line sessions you need to add or modify the following registry setting:=20 [HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Winlogon] ParseAutoexec=3D1 Set it to 0 instead to disable it. Warning: To use this feature you need to edit Windows NT's registry. Changing the registry manually is a potential risk to your system; it may never function again. Use this information entirely at your own risk.=20 Windows 2000 allows the use of any AUTOEXEC.BAT like startup batch file for command line sessions by introducing the AutoRun registry key, as in this example:=20 [HKEY_CURRENT_USER\Software\Microsoft\Command Processor] AutoRun=3DC:\STARTUP.CMD Replace C:\STARTUP.CMD with any other batch file you like to run at startup of command line sessions. Lucas W. Boyken Computer Systems Associates Account Manager / Technical Representative lboyken@xxxxxxxxx Company Phone: 800.222.7601 Office Phone: 515.332.2751 Fax: 515.332.5687 -----Original Message----- From: Jim Kenzig [mailto:jimkenz@xxxxxxxxxxxxxx]=20 Sent: Friday, June 06, 2003 12:51 PM To: thin@xxxxxxxxxxxxx Subject: [THIN] Re: Running a script Sorry,=20 Lets clarify shall we, NT/2000 uses autoexec.nt for dos programs when they run and if specified. Autoexec.bat is NOT used in NT/2000 as it is used in 95/98. It only sets ENVIRONMENT variables. While it may be there you can't run a script from it at system bootup.=20 JK=20 -----Original Message----- From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx]On Behalf Of Lucas Boyken Sent: Friday, June 06, 2003 1:42 PM To: thin@xxxxxxxxxxxxx Subject: [THIN] Re: Running a script If you check for hidden files on your NT server on the root of the boot drive...you will see there is, in fact, an auotexec.bat that can be used. =3D20 Lucas W. Boyken Computer Systems Associates Account Manager / Technical Representative lboyken@xxxxxxxxx Company Phone: 800.222.7601 Office Phone: 515.332.2751 Fax: 515.332.5687 -----Original Message----- From: Jim Hathaway [mailto:JimH@xxxxxxxxxxxxxxx]=3D20 Sent: Friday, June 06, 2003 11:44 AM To: thin@xxxxxxxxxxxxx Subject: [THIN] Re: Running a script FYI Lucas, Winnt TSE has no autoexec.bat . . Only autoexec.nt which is only used when 16-bit apps require the usage of DOS startup paramaters. In other words, it doesn't run on boot.=3D3D20 Check out Jim K's responses to this one. Aside from the tools he mentions, there are a couple of utilities from the NT resource kits which can be used to make CMD or BAT files into controllable NT services, which will launch on boot.=3D3D20 Do a search on google for "create an NT service", ignore the programming links and you'll see some Q articles in there.=3D3D20 HTH J=3D3D20 -----Original Message----- From: Lucas Boyken [mailto:lboyken@xxxxxxxxx]=3D3D20 Sent: Friday, June 06, 2003 9:37 AM To: thin@xxxxxxxxxxxxx Subject: [THIN] Re: Running a script Try putting it in the autoexec.bat file. Either that or in the system.ini file under the run=3D3D3D3D line. Lucas W. Boyken Computer Systems Associates Account Manager / Technical Representative lboyken@xxxxxxxxx Company Phone: 800.222.7601 Office Phone: 515.332.2751 Fax: 515.332.5687 -----Original Message----- From: Michael Boggan [mailto:MBoggan@xxxxxxxxxxx]=3D3D3D20 Sent: Friday, June 06, 2003 9:54 AM To: THIN (E-mail) Subject: [THIN] Running a script I want to run a script that runs the SETPRFDC program whenever a server first boots up. What is the best way to do this? The servers are winnt tse.=3D3D3D20 Thanks, Michael Boggan Virtual Desktop Inc. ******************************************************** This Week's Sponsor - Appsense Technologies New! AppSense Optimizer is a new product from AppSense=3D3D3D20 designed = =3D to increase the user capacity of your servers.=3D3D3D20 =3D3D http://www.appsense.com/ ********************************************************** Useful Thin Client Computing Links are available at: http://thethin.net/links.cfm For Archives, to Unsubscribe, Subscribe or=3D3D3D20 set Digest or Vacation mode use the below link: http://thethin.net/citrixlist.cfm ******************************************************** This Week's Sponsor - Appsense Technologies New! AppSense Optimizer is a new product from AppSense=3D3D20 designed = to increase the user capacity of your servers.=3D3D20 =3D http://www.appsense.com/ ********************************************************** Useful Thin Client Computing Links are available at: http://thethin.net/links.cfm For Archives, to Unsubscribe, Subscribe or=3D3D20 set Digest or Vacation mode use the below link: http://thethin.net/citrixlist.cfm ******************************************************** This Week's Sponsor - Appsense Technologies New! AppSense Optimizer is a new product from AppSense=3D20 designed to increase the user capacity of your servers.=3D20 = http://www.appsense.com/ ********************************************************** Useful Thin Client Computing Links are available at: http://thethin.net/links.cfm For Archives, to Unsubscribe, Subscribe or=3D20 set Digest or Vacation mode use the below link: http://thethin.net/citrixlist.cfm ******************************************************** This Week's Sponsor - Appsense Technologies New! AppSense Optimizer is a new product from AppSense=20 designed to increase the user capacity of your servers.=20 http://www.appsense.com/ ********************************************************** Useful Thin Client Computing Links are available at: http://thethin.net/links.cfm For Archives, to Unsubscribe, Subscribe or=20 set Digest or Vacation mode use the below link: http://thethin.net/citrixlist.cfm ******************************************************** This Week's Sponsor - Appsense Technologies New! AppSense Optimizer is a new product from AppSense=20 designed to increase the user capacity of your servers.=20 http://www.appsense.com/ ********************************************************** Useful Thin Client Computing Links are available at: http://thethin.net/links.cfm For Archives, to Unsubscribe, Subscribe or=20 set Digest or Vacation mode use the below link: http://thethin.net/citrixlist.cfm ******************************************************** This Week's Sponsor - Appsense Technologies New! AppSense Optimizer is a new product from AppSense designed to increase the user capacity of your servers. http://www.appsense.com/ ********************************************************** 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