Shortcuts for Commandline?

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
MeeDIAH
Junior Member
Junior Member
Posts: 2
Joined: 2003-05-07, 09:01 UTC
Location: Stenungsund
Contact:

Shortcuts for Commandline?

Post by *MeeDIAH »

is there any way you can bind shortcuts for the commandline..

like if you write "Winamp" in the commandline it opens Winamp.
this works with the default windows apps like notepad, calc...

but is it possible to do this for other apps?

//MeeDIAH
User avatar
JackFoo
Senior Member
Senior Member
Posts: 373
Joined: 2003-02-05, 19:53 UTC
Location: ERROR

Post by *JackFoo »

Not with TC, but windows can do this; if you're comfortable using registry then go to HKEY_CLASSES_ROOT\Applications there you'll find all the programs windows can call from the open dialog (not including those in the path) and you can add your own.

Cheers.
User avatar
Valentino
Power Member
Power Member
Posts: 706
Joined: 2003-02-07, 00:21 UTC
Location: Ukraine

Post by *Valentino »

SFOT but similar question: how to force Internet Explorer to use other editor than Notepad for "View Source" command (without replacing notepad.exe in Win dir)?
I selected my preferred editor (scite) in IE Options|Programs|HTML Editor. Also I added SciTE to reg key mentioned by JackFoo in above post. I even specified path to SciTE.exe in "HKCR\Applications\notepad.exe\shell\edit\command"
All without succes - damned notepad.exe is still called...
User avatar
JackFoo
Senior Member
Senior Member
Posts: 373
Joined: 2003-02-05, 19:53 UTC
Location: ERROR

Post by *JackFoo »

Try this:
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&q=%22view+source%22+different+editor&sa=N&tab=wg
Quite a few answers there.

I opted for replacing notepad.exe; Saved me tons of hassle.

Cheers.
MeeDIAH
Junior Member
Junior Member
Posts: 2
Joined: 2003-05-07, 09:01 UTC
Location: Stenungsund
Contact:

Post by *MeeDIAH »

thanks for the answer JackFoo..
i couldn't really figure out how to do in HKCR\Application

but i've found another solution...

i just added a new key in
HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths
with the name of the "shortcut" like Winamp.exe and then changed the value of the (standard)-string to the full path for winamp like c:\winamp\winamp.exe...
that's it.. now I only have to write "Winamp" in the TC command line to start winamp..

//MeeDIAH
User avatar
norfie
Power Member
Power Member
Posts: 1194
Joined: 2003-02-18, 14:18 UTC

Post by *norfie »

Last edited by norfie on 2004-09-10, 20:16 UTC, edited 1 time in total.
poiuytr
Senior Member
Senior Member
Posts: 243
Joined: 2003-02-23, 17:33 UTC

Post by *poiuytr »

norfie wrote:DOS rules ;) :lol:
My ancient solution:
1st: directory c:\bat
2nd: environment variable path=%path%;c:\bat
3rd: every "shortcut" is a batch-file in c:\bat

e.g.:
winamp.bat
with
@c:\winamp\winamp.exe %1 %2 %3 %4 %5

:P
Annoying black command windows splash every time you call a bat file. It is not a big deal but it prevents me from using it.
User avatar
norfie
Power Member
Power Member
Posts: 1194
Joined: 2003-02-18, 14:18 UTC

Post by *norfie »

Last edited by norfie on 2004-09-10, 20:15 UTC, edited 1 time in total.
User avatar
Valentino
Power Member
Power Member
Posts: 706
Joined: 2003-02-07, 00:21 UTC
Location: Ukraine

Post by *Valentino »

Thanks! The following did the trick (for IE6) if someone interested:

REGEDIT4
; View Source" command
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\View Source Editor\Editor Name]
@="C:\\Program Files\\SciTE\\SciTE.exe"
JackFoo wrote:I opted for replacing notepad.exe; Saved me tons of hassle.
Yes. I also had replaced notepad with Bred. But when I went to SciTE, I didn't want to copy a dozen of files to Win dir.
User avatar
Black Dog
Power Member
Power Member
Posts: 1024
Joined: 2003-02-05, 22:17 UTC
Location: Odessa
Contact:

Post by *Black Dog »

[face=courier]On 07-05-2003 11:13:18 +0000 MeeDIAH wrote:

M> is there any way you can bind shortcuts for the commandline..

Not with Commander, but you can use external tool. For example I use TAR (TypeAndRun, former WinConsole) for this and many other purposes. It is free now. Actually I can't imagine how I went w/o it before.
You can set it up to open executed paths in Commander, BTW.[/face]
Post Reply