Help using the Start command please!!!

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

I'm trying to start a program remotely from another pc.

I was trying to use the start command to do this. will this work??

start \\(ip address)\c:\(program name)

as the program is on the root of the remote machine no long paths are needed but still it said that the path is incorrect even when i know that the ip is good.

help me please!!
 
map a drive. start probably doesn't like unc paths.

edit: i didn't notice the wrong syntax there. you cant's use c:\ like that. you either have to create a share, or use admin shares eg

\\pc\c$\blah.exe (admin share)
\\pc\c\blah.exe (share you've created called c)
 
Last edited:
ok, sounds good,

my next question would be how would i do that in dos??

isn't it something like:

net z:\ \\ipaddress ?????

cheers for the help

edit; arh, i see that you've edited ** post. ok that also sounds good but due to the batt running out on my laptop and the psu being at work i'll have to wait untill tomrrow to test, but that looks good.

Since i'll be using this in a batch file for use with lots of pc i think i'll go with the c$.

I'll let you know how it goes

cheers
 
Last edited:
Shares in DOS:

net use * \\machine\c$ /user:Administrator adminpassword

The * is the drive letter you wish to assign the share to. If you leave it as * then it chooses the next available drive letter for you. If you specify a drive letter and its not available then the command will fail. The first part "\\machine\c$" is the address of the share, the second part is the user name required to access that share.
 
you mention lots of pcs. you do realise running the app over the network like this will only be running the program on your laptop? it won't be starting the app on the networked machine.....
 
really???

i was under the understanding that i could start a program running on another machine (remotely)

if this is wrong please advise!!
 
i'm pretty sure you're going to need 3rd party software for this. like i say, all you're doing with this method is connecting to remote machine to run the program on your machine.....

and the batch file thing is no different to a command prompt. it won't work. :)

edit: quick google found this. don't know if it's any good though.... :p

http://www.beyondlogic.org/solutions/remoteprocess/BeyondExec.htm
 
Last edited:
No I just tested it on my home network and that command I just listed will run on the machine that is running the script.

I assume that the program is on your laptop say and each machine on the network will run the script and connect to your laptop. Each machine on the network will then run the program from the mapped drive on itself.
 
right, so I've used;

:loop
set /p IP="Enter IP Address of Pc: "
net use \\%IP% /user:spottydog *******
set /p program="enter Program to be Started (including Extention): "
start \\%IP%\c$\%program%

pause
goto loop

this works but only in the sense that it starts the program but no my local machine and not on the remote one as needed.

A friend has said that i should map a drive first, but tbh I'm sure how to do this.

would this work???

if so how can i do it......

please help!!!
 
Dureth said:
Me too, I told you how to map a drive.

sorry but i don't think you even understand what the OP wants to do. :p

Dureth said:
No I just tested it on my home network and that command I just listed will run on the machine that is running the script.

I assume that the program is on your laptop say and each machine on the network will run the script and connect to your laptop. Each machine on the network will then run the program from the mapped drive on itself.

this is completely the opposite of what the op wants to do.

he doesn't want to be visiting each machine individually to run a batch file and he doesn't need each machine to connect to his laptop to acces the application.

each machine already has the application installed locally and he's trying to connect to each machine remotely and execute the app so it actually runs on the target machine. all from the comfort of where ever he's sat with his laptop. :)

the obvious solution would be remote desktop or possibly that app i linked to above that works from the command line (like i said, i haven't tested it).
 
Sorry I thought he was going to be running a logon script for each machine that would connect to the laptop and a run a program from there.

If he needs to run a program on each machine based on a script on his laptop then the best way is to use the rexec command, although if an admin password is required then he will need to use the T4eRexec freeware tool to do this. This runs a command on the remote machine, so you could use this to make the remote machine map a drive to the laptop then run the program file. I'll test this for you tonight at home.
 
Back
Top Bottom