Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Setting a service to start automatically from the command line?

Thread Tools
 
Search this Thread
 
Old 26 April 2002, 10:23 AM
  #1  
SD
Scooby Regular
Thread Starter
 
SD's Avatar
 
Join Date: Apr 2001
Posts: 678
Likes: 0
Received 0 Likes on 0 Posts
Question

Guys,

Ok, so I have the Remote Shell Service (rshsvc) and I'm installing it on many machines using a batch file I've created. Everything is ok but I don't know how to tell the service to be set to start automatically using the command line.

Anyone have any ideas how to, or will I just have to do it using the services applet on every machine I visit?

Ta,

Simon
Old 26 April 2002, 10:35 AM
  #2  
mega_stream
Scooby Regular
 
mega_stream's Avatar
 
Join Date: May 2001
Location: Scotland
Posts: 4,580
Likes: 0
Received 0 Likes on 0 Posts
Post

Net Start??
Old 26 April 2002, 10:44 AM
  #3  
SD
Scooby Regular
Thread Starter
 
SD's Avatar
 
Join Date: Apr 2001
Posts: 678
Likes: 0
Received 0 Likes on 0 Posts
Lightbulb

Yes, that start's the service but it doesn't set the option for it to start automatically on reboot... It'll still be set to manual after that.
Old 26 April 2002, 11:20 AM
  #4  
David_Wallis
Scooby Regular
 
David_Wallis's Avatar
 
Join Date: Nov 2001
Location: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Posts: 15,239
Likes: 0
Received 1 Like on 1 Post
Post

could edit the registry to do it.. set the start value to 3 which is automatic... why do you want to do it via command line??

I can write you a script to do the above if thats any use?

Email me if you want..

David
Old 26 April 2002, 11:22 AM
  #5  
David_Wallis
Scooby Regular
 
David_Wallis's Avatar
 
Join Date: Nov 2001
Location: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Posts: 15,239
Likes: 0
Received 1 Like on 1 Post
Post

ive re read your msg now... email me the service and batch file and Ill package it for you if you want so it will do everything for you... mail it to david.wallis@ventura-uk.com in a password protected zip file.. (stops at mailsweeper otherwise and I'd have to go find it...)

David
Old 26 April 2002, 11:28 AM
  #6  
SD
Scooby Regular
Thread Starter
 
SD's Avatar
 
Join Date: Apr 2001
Posts: 678
Likes: 0
Received 0 Likes on 0 Posts
Post

David, thanks. The reason why I want to do it via 'command line' is basically I've written a batch file to copy the service files to the pc, install the service, and then start it. I wanted to integrate the 'start-up to automatic' change into that. At the mo it looks like this:

@echo off
echo Copying files
c:
cd\
cd winnt
cd system32
copy a:\rshsvc.dll
copy a:\rshsvc.exe
copy a:\rshsetup.exe
cd drivers
cd etc
copy a:\.rhosts
cd..
cd..
rshsetup %SystemRoot%\System32\rshsvc.exe %SystemRoot%\System32\rshsvc.dll
net start rshsvc
echo Done!
pause

Shall I just create a .reg file with the the string value and then call the file from the install batch file?

Thanks,

Simon
Old 26 April 2002, 11:32 AM
  #7  
SD
Scooby Regular
Thread Starter
 
SD's Avatar
 
Join Date: Apr 2001
Posts: 678
Likes: 0
Received 0 Likes on 0 Posts
Post


ive re read your msg now... email me the service and batch file and Ill package it for you if you want so it will do everything for you... mail it to david.wallis@ventura-uk.com in a password protected zip file.. (stops at mailsweeper otherwise and I'd have to go find it...)

David
That'll teach me to type so slowly!

YHM in about 20 minutes.

Ta,

Simon.
Old 26 April 2002, 01:57 PM
  #8  
David_Wallis
Scooby Regular
 
David_Wallis's Avatar
 
Join Date: Nov 2001
Location: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Posts: 15,239
Likes: 0
Received 1 Like on 1 Post
Post

Now sorted because I am really clever!

David
Old 26 April 2002, 10:16 PM
  #9  
SD
Scooby Regular
Thread Starter
 
SD's Avatar
 
Join Date: Apr 2001
Posts: 678
Likes: 0
Received 0 Likes on 0 Posts
Arrow

Seriously guys, he is really clever!

Thanks again David.
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Scott@ScoobySpares
Full Cars Breaking For Spares
61
11 January 2021 03:08 PM
Scott@ScoobySpares
Full Cars Breaking For Spares
7
14 December 2015 08:16 AM
Brett-wv14
Subaru
17
06 October 2015 09:03 PM
taylor85
Wheels And Tyres For Sale
9
28 September 2015 11:34 PM
domino46
Subaru Parts
1
11 September 2015 08:54 AM



Quick Reply: Setting a service to start automatically from the command line?



All times are GMT +1. The time now is 01:52 AM.