You are here

Some Help with relative Shortcuts

5 posts / 0 new
Last post
Wooops_Phil
Offline
Last seen: 14 years 5 months ago
Joined: 2009-06-18 23:25
Some Help with relative Shortcuts

Hello,
I´m trying to create some launchers/shortcuts to run cmd.exe from my stick in the local installation (with parameters).
So far I have tried with some variables but they haven´t work, like

%HomeDrive%\WINDOWS\system32\cmd.exe
%SystemDrive%\WINDOWS\system32\cmd.exe
%SystemRoot%\system32\cmd.exe
%SYSTEMDRIVE%\WINDOWS\system32\cmd.exe
Also with %ComSpec% and %Path% .
It doesn´t work neither if I leave "\WINDOWS\system32\cmd.exe" since it uses the drive of the usb.

Any help on how to make it work? Smile

PD: Since I´m not an expert guy I´m using http://www.mystercrowley.com/portabilizer.php to make the launchers and what it´s actually not working is the target field.

Phil

John T. Haller
John T. Haller's picture
Offline
Last seen: 4 hours 25 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Command Prompt Portable

Why not just use Command Prompt Portable:
https://portableapps.com/apps/utilities/command_prompt_portable

Sometimes, the impossible can become possible, if you're awesome!

Ed_P
Offline
Last seen: 5 years 8 months ago
Joined: 2007-02-19 09:09
KISS

How about simply:

cmd.exe

The host knows it's location. If not then use:

c:\windows\system32\cmd.exe

It's rare the systemdrive isn't c:.

Ed

J Neutron
Offline
Last seen: 1 month 1 week ago
Joined: 2008-06-10 19:26
FreeCommanderPortable

If you use FreeCommanderPortable as your file manager (a good choice, I might add), it has an icon in the menubar to drop to the command prompt in the currently active folder.

neutron1132 (at) usa (dot) com

Wooops_Phil
Offline
Last seen: 14 years 5 months ago
Joined: 2009-06-18 23:25
Thanks that works

Ed_P wrote:
How about simply:

cmd.exe

The host knows it's location.

Thanks that works Smile

John T. Haller wrote:
Why not just use Command Prompt Portable:
https://portableapps.com/apps/utilities/command_prompt_portable

I tried it but as the thread points out https://portableapps.com/node/7890
It doesn´t support running with parameters, unless I use a permanent one in the batch file.

(sorry for the delay)

Phil

Log in or register to post comments