How to execute processes on other systems using psexec.

Hello,

inside the VMware virtual machine I'm running Windows 7 as guest OS. Since my computer is not very powerful,I can't hear mp3 songs using winamp there,because it is resources hungry. So,I would like to play mp3 songs launching winamp from the command line inside the guest OS and I want that it run outside the VM,on the host OS (Windows 7,too). I'm using psexec.

I tried this :

c:\temp\psexec \\MARIETTO2008 "c:\program files\winamp\winamp.exe"

but it run winamp with the gui and I don't need it,I want that winamp play an mp3 song by invoking the mp3 file name from the command line,like this : winamp.exe e:\downloads\mp3\rock\go go go.mp3.

it should be something like this :

c:\temp\psexec \\MARIETTO2008 "c:\program files\winamp\winamp.exe e:\downloads\mp3\rock\go go go.mp3"

but it doesn't works because the syntax of the file name of the directory or volume is incorrect

where :

c:\temp : it's the location of the ps tools on the guest OS
MARIETTO2008 : it's the name of the host OS
c:\program files\winamp\ : it's the location of winamp on the host OS
e:\downloads\mp3\rock : it's the location of the mp3 on the host OS
"go go go.mp3" : is the name of the mp3 to play

the guest OS shares drive C: and the host OS shares drive C: and E:
LVL 2
marietto2008Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

BarthaxCommented:
I don't have winamp to test it, however, your command-line's quotes are a little wrong.  Try:

c:\temp\psexec \\MARIETTO2008 "c:\program files\winamp\winamp.exe" "e:\downloads\mp3\rock\go go go.mp3"

The program should be quoted on its own & the rest of the command-line is passed to that program on the remote machine as parameters.

You might like to add the -d command so that your psexec is not sat around waiting for winamp to exit (unless you already have winamp running there - I can't remember exactly winamp's behaviour).
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
marietto2008Author Commented:
it works partially,because winamp run on the host OS without the shoutcast source attached.
0
marietto2008Author Commented:
ok.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Remote Access

From novice to tech pro — start learning today.