Wishlist: Improved Commandline

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Wishlist: Improved Commandline

Post by *fenix_productions »

That's one of my two ideas.
It could be possible to make specify your own command name. Ithink 'bout somethig like settings for winamp in registry.
When You write in Windows->Run command "winampa" you've got strting winamp.

I think that's a matter of one INI file with structure similiar to BAR files. TC could check that's file cointent on start.

An example:

Code: Select all

[CommandList]
Command=1
cmd_name=play song
cmd1=C:\Program Files\media\player\MyPlayer.exe
path2=C:\Program Files\media\player\
When I insert into TC CommandLine phrase:

Code: Select all

play song
it should start MyPlayer...
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

I did not try it out myself yet but it seems you're looking for Type and Run.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

Yep, TAR is one of the best choices for that.

You can also try Easy-Go! available here:
http://ajax.forever.kz/

Of course it's also possible using AutoHotkey. ;)

Icfu
Last edited by icfu on 2006-01-20, 16:58 UTC, edited 1 time in total.
This account is for sale
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

I know many programs for that:
TypeAndRun, nircmd, SlickRun...

But why we should use external command line utility if we can use build in one?
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

Because the chance for an internal solution like that comes close to 0.0 percent in an average time period of 10 years.

Of course I would like to have that functionality built in TC too.

Icfu
This account is for sale
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

By the way, you can already do that in TC command line, just by editing the registry.

In the key

Code: Select all

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths
you can add aliases yourself. For example create a subkey

Code: Select all

np.exe
and set default value to

Code: Select all

notepad.exe
.

If you then enter "np" in TC command line, Notepad will be started.

You can also create shortcuts to your favourites in a path that is covered by %path% variable. A shortcut named "np.lnk" will also be found by TC when you type "np". This way you can also use parameters.

Icfu
This account is for sale
User avatar
Hacker
Moderator
Moderator
Posts: 13068
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Or batch files. :)

HTH
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

Boooo, too profane. ;)

Icfu
This account is for sale
User avatar
petermad
Power Member
Power Member
Posts: 14810
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Or batch files
That would be my first choice :-)
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

It's only my wish and I've got splash to the ground ;)

P.S. From long time I'm using "registry tip" for that...
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
User avatar
robinsiebler
Senior Member
Senior Member
Posts: 460
Joined: 2003-03-05, 21:04 UTC

Post by *robinsiebler »

This will do exactly what you want:

http://www.max2k.com/programs.php?id=31

When you type in the windows run dialog "calc"(for example), Windows know which program to execute because it has in the registry the link associated with the word "calc"(usually windows/system/calc.exe). With this program you can make other connections.Let's suppose that you have the program "C:\Program Files\Max2k\MaxKeys\MaxKeys.exe" and want to associate a short word.Type a command(e.g."key") and open the file. Then click the "Add/Update" button.Now , every time you'll type "key" in the run dialog the MaxKeys program will be executed.

Image: http://www.max2k.com/imag/prog/31.jpg
Robin L. Siebler
Personal License #13949
------------------------------
"Bother", said Pooh, as he deleted Windows
User avatar
MPS
Junior Member
Junior Member
Posts: 90
Joined: 2004-07-27, 15:57 UTC
Location: Poland
Contact:

Post by *MPS »

it's ok if someone loves to type in the command box, but really why bother? that's what shortcuts with icons on the desktop/quick lauch/quick bar/start menu/personal bars/totalcmd bats are for :?
Post Reply