You are here

portable command promps

4 posts / 0 new
Last post
madtyrant
Offline
Last seen: 15 years 8 months ago
Joined: 2006-11-09 14:33
portable command promps

i think the command prompt of windows xp should bec0ome a portable for those who need quick access to it

rich.bradshaw
Offline
Last seen: 9 years 2 months ago
Joined: 2006-10-05 08:41
Why is there any need? It is

Why is there any need? It is built into every PC anyway. If it is locked down, then I doubt any third party replacement would work, as they would have to interface with the normal one in some way anyway... Maybe I'm wrong though...

otbsupport
Offline
Last seen: 14 years 10 months ago
Joined: 2006-05-23 16:25
You're right, there's really

You're right, there's really no need, but if someone did want a portable command line, check out Console

OTBSoft ::Thinking Outside The Box::

grizadams73
Offline
Last seen: 9 years 8 months ago
Joined: 2006-09-15 14:31
Using PStart...

You can add a shortcut to c:\windows\system32\cmd.exe (assuming that %windir% is standard on the machine), and use '/k "%pdrive%"' as the command line parameters. This will open a command window to the root of your portable drive.

Or, you could build a launcher program with NSIS to check the %ComSpec% environment variable, and execute that directly. Here's some starting code (that doesn't take command line parameters to change directories):

Name "Command Window Portable"
OutFile "cmdPortable.exe"
Caption "Command Window Portable"
SilentInstall silent
Icon "${NSISDIR}\Contrib\Graphics\Icons\llama-blue.ico"

Section "Main"
    ReadEnvStr $R0 "COMSPEC"
    Exec $R0
SectionEnd

I may actually replace my shortcuts with this app.

Legal Stuff: I hereby release the above code to the public domain. Enjoy. Smile

Topic locked