execute command on a remote computer,how?

porov

Junior Member
Nov 20, 2005
16
0
0
See i have 2 pcs at home both connected with a cat5 cable using internet connection sharing.
So what i want to do is:
I would like to be able to execute commands remotely from the one computer on the another
For example i am sitting on pc1 and i want to execute a command on pc2 like "run "c:/my files/file.txt"",I dont know how do such a thing,it would be nice if there is some way to do this, no matter is it trough dos commands or with GUI but i want to do it somehow,i am using winxp pro on both pcs.
Any help would be appreciated.
 

porov

Junior Member
Nov 20, 2005
16
0
0
well i just tryed it,its really what i am looking for,thanx alot,but can u find something like this but with a gui,it would be whole lot easier and faster
regards
Por Porov
 

MrChad

Lifer
Aug 22, 2001
13,507
3
81
Originally posted by: porov
winxp pro

Use Remote Desktop. On the system you want to connect to, right-click My Computer and check "Allow remote users to connect to this computer" under the Remote tab. On the system you want to run the commands on, open the Remote Desktop application (Accessories \ Communication \ Remote Desktop Connection) and type in the computer name you want to connect to.
 

porov

Junior Member
Nov 20, 2005
16
0
0
i thought that u would say that.
the problem of the remote desktop is that when i connect to the other pc it automaticly logs you out and above that it is slow.i need something that can execute the commands but wihile i am logged in on the other pc
thanx anyway
 

MrChad

Lifer
Aug 22, 2001
13,507
3
81
Originally posted by: porov
i thought that u would say that.
the problem of the remote desktop is that when i connect to the other pc it automaticly logs you out and above that it is slow.i need something that can execute the commands but wihile i am logged in on the other pc
thanx anyway

Ok, in that case check out VNC. You can download RealVNC (or WinVNC or TightVNC) for free (just Google). You'll takeover an existing Windows session, unlike Remote Desktop.

Not as fast as RD, but it's your best bet if you want a GUI.
 

porov

Junior Member
Nov 20, 2005
16
0
0
ok thanx alot ure the best,i am working now with pstools and they do the job well,anyway i am gonna try the other program aswell
regards
 

porov

Junior Member
Nov 20, 2005
16
0
0
just one more problem,i am using the pstools prog now,i havent tryed the other one yet.but anyway the problem is so:
when i open a remote proces , for eg "psexec \\pc2 c:program files\winamp\winamp.exe",it opens the process but i cant see the program.
i tryed the -i parameter so it can bring it on the desktop but i didnt worked,any suggestions?
 

MrChad

Lifer
Aug 22, 2001
13,507
3
81
Originally posted by: porov
just one more problem,i am using the pstools prog now,i havent tryed the other one yet.but anyway the problem is so:
when i open a remote proces , for eg "psexec \\pc2 c:program files\winamp\winamp.exe",it opens the process but i cant see the program.
i tryed the -i parameter so it can bring it on the desktop but i didnt worked,any suggestions?

Can't see the program where? On the local computer or on the remote computer?
 

porov

Junior Member
Nov 20, 2005
16
0
0
i dont get it why the -i parameter isnt working
there must be something wrong
 

MrChad

Lifer
Aug 22, 2001
13,507
3
81
Originally posted by: porov
i dont get it why the -i parameter isnt working
there must be something wrong

You may need to use it in conjunction with the -u parameter, passing the username of the user who is logged in.
 

porov

Junior Member
Nov 20, 2005
16
0
0
i know what was the problem,the previous time is executed the \\pc2 cmd commmand,so i was using the command prompt on the other pc not the psexec prog.now when i tryed again with this "psexec \\pc2\c:\rogram files\winamp\winamp.exe"
i get that message make sure that the default admin$ share is enabled on work\\c:\program....
i shared the program files folder with everyone permissions and still not working
 

nweaver

Diamond Member
Jan 21, 2001
6,813
1
0
program files folder is not that $admin share, $admin is a default (hidden) share
 

porov

Junior Member
Nov 20, 2005
16
0
0
ok whatever,i downloaded the real vnc program,and its working fine.so i dont need the other one anymore
thanx