Article ID: 197178 - Last Review: October 31, 2006 - Revision: 1.1 Passing Environment Variables to Applications Started by SRVANYThis article was previously published under Q197178
IMPORTANT: This article contains information about editing the registry.
Before you edit the registry, make sure you understand how to restore it if
a problem occurs. For information on how to do this, view the "Restoring
the Registry" online Help topic in Regedit.exe or the "Restoring a Registry
Key" online Help topic in Regedt32.exe.
SUMMARY
Some applications you want to launch using SRVANY from the Windows NT
Resource Kit may require specific environment variables that you may not
want to set as, or set differently than system variables.
You can launch a batch file from SRVANY, do the modifications to the environment there, and then start the application. But there is a drawback: SRVANY will not terminate the application when you stop the service. Instead, it will terminate Cmd.exe. This makes it hard to administrate this service, especially remotely. MORE INFORMATION
There is a new version of Srvany.exe that supports setting the environment
for the application. After you have stopped all SRVANY-based services and
copied the new version into the location used by the services, follow these
steps:
WARNING: Using Registry Editor incorrectly can cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk. For information about how to edit the registry, view the "Changing Keys And Values" Help topic in Registry Editor (Regedit.exe) or the "Add and Delete Information in the Registry" and "Edit Registry Data" Help topics in Regedt32.exe. Note that you should back up the registry before you edit it. If you are running Windows NT, you should also update your Emergency Repair Disk (ERD).
NOTE: Only the settings in this registry entry will be passed to the service, so make sure to include all core entries like PATH, TEMP, OS, and so on, in the registry entry. You can find the new file at the following locations: ftp://ftp.microsoft.com/bussys/winnt/winnt-public/reskit/nt40
(ftp://ftp.microsoft.com/bussys/winnt/winnt-public/reskit/nt40)
Intel: i386/srvany_x86.exe Alpha: alpha/srvany_axp.com | Article Translations
|

Back to the top
