remote services batch file

Associate
Joined
8 Mar 2007
Posts
2,176
Location
between here and there
hey all,

I'm trying to write a batch file to start and stop services on remote machines.

The problem I'm having is with the choice command, I want the batch file to ask weather you wish to enter a ip address or a service first and then take you a command that will input the data (either ip or service) to a command, (net use and sc command) and then run it.

if this make sense to you please help me!!!!!


thanks in advance
 
hello again,

I have gotten done the choice command but I'm still having issues with how to run the command, net use \\xxx.xxx.xxx.xxx (where xxx is a ip address entered by user)

and then sc \xxx.xxx.xxx.xxx start {service} where {service} is a service entered again by the user.

any ideas?
 
Back
Top Bottom