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 Apr 26, 2002 | 10:23 AM
  #1  
SD's Avatar
SD
Thread Starter
Scooby Regular
 
Joined: Apr 2001
Posts: 678
Likes: 0
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
Reply
Old Apr 26, 2002 | 10:35 AM
  #2  
mega_stream's Avatar
mega_stream
Scooby Regular
 
Joined: May 2001
Posts: 4,580
Likes: 0
From: Scotland
Post

Net Start??
Reply
Old Apr 26, 2002 | 10:44 AM
  #3  
SD's Avatar
SD
Thread Starter
Scooby Regular
 
Joined: Apr 2001
Posts: 678
Likes: 0
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.
Reply
Old Apr 26, 2002 | 11:20 AM
  #4  
David_Wallis's Avatar
David_Wallis
Scooby Regular
 
Joined: Nov 2001
Posts: 15,239
Likes: 1
From: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
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
Reply
Old Apr 26, 2002 | 11:22 AM
  #5  
David_Wallis's Avatar
David_Wallis
Scooby Regular
 
Joined: Nov 2001
Posts: 15,239
Likes: 1
From: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
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
Reply
Old Apr 26, 2002 | 11:28 AM
  #6  
SD's Avatar
SD
Thread Starter
Scooby Regular
 
Joined: Apr 2001
Posts: 678
Likes: 0
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
Reply
Old Apr 26, 2002 | 11:32 AM
  #7  
SD's Avatar
SD
Thread Starter
Scooby Regular
 
Joined: Apr 2001
Posts: 678
Likes: 0
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.
Reply

Trending Topics

Old Apr 26, 2002 | 01:57 PM
  #8  
David_Wallis's Avatar
David_Wallis
Scooby Regular
 
Joined: Nov 2001
Posts: 15,239
Likes: 1
From: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Post

Now sorted because I am really clever!

David
Reply
Old Apr 26, 2002 | 10:16 PM
  #9  
SD's Avatar
SD
Thread Starter
Scooby Regular
 
Joined: Apr 2001
Posts: 678
Likes: 0
Arrow

Seriously guys, he is really clever!

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




All times are GMT +1. The time now is 10:25 AM.