Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

running an .EXE befor logon on 3.51WKS

Posted on 1997-07-04
4
Medium Priority
?
253 Views
Last Modified: 2013-12-28
dos any one know the registry key for running an .EXE
befor user logon?
(On win95 the key is
 Local_machine/softwere/micro$oft/wondows/curentVertion/run
 -or .../runonce .../runservice .../runserviceonce
 but on nt it is differnt.)
0
Comment
Question by:etamir
  • 3
4 Comments
 
LVL 2

Accepted Solution

by:
gantriis earned 480 total points
ID: 1779519
Hi etamir.

Usually you would write a Windows NT service that will be set to start automatically in order to accomplish this.

However, the Windows NT resource kit contains a utility - SRVANY - that will help you to run a usual .EXE or .BAT file as a service. This means that the file can be set to start execute before any users logs on to the system.

The resource kit files you will need are:
SRVANY.WRI: Documents what you should do.
SRVANY.EXE: Helps you run a usual EXE as a service.
INSTSRV.EXE: Helps you install the SRVANY service.

I have copied a few useful points from the SRVANY.WRI file below:

The benefits of SRVANY include:
- allow apps to survive logoff/logon sequences, hence saving the overhead of re-starting them for each new user
- allow server apps to come-up and service requests even when no user is logged-on
- allow apps to run and perform a task in a specific logon account, different from the currently logged-on user

Installation:

- Copy SRVANY.EXE to your system and install it as a Windows NT service, for example:
      INSTSRV MyService c:\tools\srvany.exe
- configure via the Services applet ("Startup..." dialog) of the Control Panel as manual or automatic, as appropriate.
- set via the Services applet ("Startup..." dialog) of the Control Panel the account for the service. If you need access to the screen & keyboard, you must choose the LocalSystem account and click the "Allow Service to Interact with Desktop", otherwise choose any account and specify the correct logon password. Note that the LocalSystem account doesn't have network access.

Specifying the application to start & its parameters:

Run the Registry Editor (REGEDT32.EXE):
- under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MyService: create a 'Parameters' key
- under the above key, create an 'Application' value of type REG_SZ and specify there the full path of your app executable (including the extension). For example:
       Application: REG_SZ: D:\TOOLS\VI.EXE
 - OPTIONAL: under the above key, create an 'AppParameters' value of type REG_SZ and specify the parameters for your app. For Example:
      AppParameters: REG_SZ: C:\TMP\FOO
- OPTIONAL: under the above key, create an 'AppDirectory' value of type REG_SZ and specify the current directory to use for the app, eg:
      AppDirectory: REG_SZ: C:\TMP


Hope this answers your question.

Cheers
JG
0
 

Author Comment

by:etamir
ID: 1779520
thanks!
can you just Email me SRVANY.WRI, SRVANY.EXE and NSTSRV.EXE ?
or at least tell me where I can get them.
I do not have a way to get the Windows NT resource kit.
I will apreciate it if you could send me the files..
my work Email is <eliezer at actcom.co.il> and I can dounload very big files if nessesry.
0
 

Author Comment

by:etamir
ID: 1779521
Adjusted points to 125
0
 

Author Comment

by:etamir
ID: 1779522
Thanks for the answer !
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A small collection of useful tips and tricks for Windows 10 users that I decided to write as a result of recent questions that were asked and answered at Experts Exchange. Two short video tutorials included. Enjoy..
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question