Opening a file on a remote computer

1etherer

Fully Optimized
Messages
1,878
Location
Earth
Ok, Ive been trying to figure this out and I am sure im missing a simple cmdlet... Im using windows 7 on my work network and using PsExec I have a remote command prompt open of my friends machine in the office and I thought by just typing e.g. picture.jpg it will open the image in there folder on their screen but it doesnt.

So what I need help with is what cmd can I use to make it work.. :cool:

Ive tried, start "pic.jpg"
Ive even just tried notepad.exe and it doesnt open on their machine
 
Last edited:
cmd.exe /c START c:\path\to\document.jpg
That should work
you have to explicitly invoke the remote cmd.exe I assume. I'm no expert in Windows though :tongue:
 
psexec.exe [network path] [path-to-exe] [arguments]

E.g.
psexec.exe //192.168.1.192 %systemroot%\System32\cmd.exe ipconfig

edit: you might need network credentials to do it
 
Last edited:
Ive tried that already carnage, but thanks. I will give para's advise a go.. didnt think of that cmd line. I have admin creds
 
Last edited:
psexec.exe [network path] [path-to-exe] [arguments]

E.g.
psexec.exe //192.168.1.192 %systemroot%\System32\cmd.exe ipconfig

edit: you might need network credentials to do it

This didnt work either, there must be a way to do it without RDP..

UPDATE : I got it to work, with a very simple cmd change.. however e.g. when I open notepad on the remote computer it doesnt load the graphics properly and cannot be used but does not affect the computer itself just the app and you can simple close the app.
 
Last edited:
Back
Top Bottom