Forum     

Go Back   Digit Technology Discussion Forum > Portables, Peripherals and Electronics > QnA (read only)
Register FAQ Calendar Mark Forums Read

QnA (read only) Mods please help transfer the contents of this forum to proper sections. :)


 
 
LinkBack Thread Tools Search this Thread Display Modes
Old 25-10-2007, 03:55 PM   #1 (permalink)
 MacManiac
 
jamesbond007's Avatar
 
Join Date: Jan 2005
Location: Nalgonda
Posts: 707
Default Run a batch file as a service


In the Q&A section of the current October issue, on page 99 is the following intresting question :

I need to run a batch file every time I boot into windows. The files should run before anyone logs on. I use Windows 2000 Server.

I have the same question except that I use Windows XP Pro SP2, after reading the solution there I tired to search the following files Autoexnt.exe, Servmess.dll and Instexnt.exe but with little success.
I want a similar solution for XP, I mean I want my batch file ( which I currently have put in start up folder ) to run as a service.
__________________
Why doesn't Airport automatically connect to the default Wireless network after a power cut ??
jamesbond007 is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 25-10-2007, 04:42 PM   #2 (permalink)
Human Spambot
 
Join Date: Nov 2004
Location: Madurai
Posts: 2,349
Default Re: Run a batch file as a service

Make an entry in HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run Services

Arun
sakumar79 is offline  
Old 25-10-2007, 05:59 PM   #3 (permalink)
 MacManiac
 
jamesbond007's Avatar
 
Join Date: Jan 2005
Location: Nalgonda
Posts: 707
Default Re: Run a batch file as a service

@sakumar79
please elaborate !!! Say my batch file is autoR.bat, now how do I make an entry into the registry like DWORD, string value thing......
__________________
Why doesn't Airport automatically connect to the default Wireless network after a power cut ??
jamesbond007 is offline  
Old 25-10-2007, 06:15 PM   #4 (permalink)
Human Spambot
 
Join Date: Nov 2004
Location: Madurai
Posts: 2,349
Default Re: Run a batch file as a service

Go to regedit, navigate to the key (HKLM means HKEY_LOCAL_MACHINE)... Sometimes, you may need to create the key RunServices...
Go to the right side, right click and add new String value... For the name, give any meaningful name, and the entry should be the command string...

Arun
sakumar79 is offline  
Old 26-10-2007, 12:19 PM   #5 (permalink)
 MacManiac
 
jamesbond007's Avatar
 
Join Date: Jan 2005
Location: Nalgonda
Posts: 707
Default Re: Run a batch file as a service

by command string do you mean the path of the batch file that I wish to run as a service???
__________________
Why doesn't Airport automatically connect to the default Wireless network after a power cut ??
jamesbond007 is offline  
Old 26-10-2007, 01:49 PM   #6 (permalink)
Human Spambot
 
Join Date: Nov 2004
Location: Madurai
Posts: 2,349
Default Re: Run a batch file as a service

Yes

Arun
sakumar79 is offline  
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating batch file from VB ruturaj3 QnA (read only) 2 20-06-2007 06:11 PM
batch file problem..... hansraj QnA (read only) 16 30-11-2005 02:18 AM
Batch File to Stop and Start Services navjotjsingh QnA (read only) 1 26-07-2005 07:53 PM
help needed reg. batch file. legolas QnA (read only) 4 26-03-2005 10:11 AM

 
Latest Threads
- by clmlbx
- by tkin

Advertisement




All times are GMT +5.5. The time now is 05:33 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2