Page 1 of 1

How to start service and launch *.exe from desktop shortcut

Posted: 18 Sep 2011 10:45
by alan_b
This is a DOS command that works for me

Code: Select all

net start VMUSBArbService & CD /D E:\VMWare & start E:\VMWare\vmplayer.exe

I can create two entities,
a *.BAT script for this somewhere plus a short-cut on the desktop.

I hate needless proliferation of entities and prefer to have just the one.
I envisage placing the BAT script on the desktop ready for a double click,
unless you can suggest a more elegant solution.

Background.
By installation default the service VMUSBArbService is Manual and I refuse to have it autostart on the many days VMPlayer is not launched.
Unfortunately VMPlayer is unable to start its own service so USB devices cannot be accessed.
Therefore I now need to start the service before starting VMPlayer.

Regards
Alan

Re: How to start service and launch *.exe from desktop short

Posted: 18 Sep 2011 11:17
by aGerman
Hi Alan,

try the following:

Create a shortcut with
-Target:
%comspec% /c "net start VMUSBArbService & CD /D E:\VMWare & start E:\VMWare\vmplayer.exe"
-Start in:
%systemroot%\system32

Regards
aGerman

Re: How to start service and launch *.exe from desktop short

Posted: 18 Sep 2011 12:40
by alan_b
Many thanks.
Solution works perfectly

Regards
Alan