PortableApps.com wins big in the 2009 Community Choice Awards and hits 100 million app downloads!

Some Help with relative Shortcuts

Submitted by Wooops_Phil on November 4, 2009 - 10:57pm

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? Smiling

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


( categories: )

Command Prompt Portable

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

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

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

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

Thanks that works

Ed_P wrote:
How about simply:

cmd.exe

The host knows it's location.

Thanks that works Smiling

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

I tried it but as the thread points out http://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