portable substitute for "Open command window here"

Discuss anything related to portable freeware here.
Post Reply
Message
Author
Onesimus Prime
Posts: 133
Joined: Wed Sep 05, 2007 8:42 pm

portable substitute for "Open command window here"

#1 Post by Onesimus Prime »

Hey,
I've recently been playing with Executor, and made it partially simulate the MS PowerToy "Open command window here."

Command:
cmd.exe

Start in (working folder):
$C$
(this is Executor's variable for the Windows clipboard)

Hotkey (whatever you want):
Win+Alt+C

So when I'm in a Win. Explorer window, I hit Alt+D to highlight the path, Ctrl+C to copy it, Win+Alt+C to open the command prompt there.
Hope that's helpful to somebody.

Next question...
Any AutoHotKey geniuses maybe want to do a simple script that sends the Alt+D then Ctrl+C if the currently focused window is Win. Explorer? :) (or Internet Explorer too, 'cause the same shortcut works there - or maybe checking the window type at all is a bad idea, as it would limit functionality - I don't know.) Pretty please? It'd be nice to only have to use one key combo instead of 3. Of course, this request could also be more complicated than I realize... never mind, if so.

I tried to use NirCmd's "sendkey" to send the key combos, but I think it stole the focus away from the Explorer window or something. It didn't seem to work, anyway, for whatever reason.

garbanzo
Posts: 248
Joined: Thu May 15, 2008 3:00 am

#2 Post by garbanzo »

if nobody here can do this (i know i can't), then try over at donation coder in their request section. someone there could throw this together in a heartbeat.

lautrepay
Posts: 715
Joined: Sat Mar 26, 2011 2:31 am

Re: portable substitute for "Open command window here"

#3 Post by lautrepay »

PromptHere is the solution.

User avatar
m^(2)
Posts: 890
Joined: Sat Mar 31, 2007 2:38 am
Location: Kce,PL
Contact:

Re: portable substitute for "Open command window here"

#4 Post by m^(2) »

Creating a button or something with this functionality should be easy in any reasonably good file manager. I can attest that it is with Double Commander and Total Commander, but I'm sure that most competitors support it just as easily.

User avatar
SYSTEM
Posts: 2043
Joined: Sat Jul 31, 2010 1:19 am
Location: Helsinki, Finland

Re: portable substitute for "Open command window here"

#5 Post by SYSTEM »

7plus can do that as well. (The hotkey is Win-C.)
My YouTube channel | Release date of my 13th playlist: August 24, 2020

freakazoid
Posts: 1212
Joined: Wed Jul 18, 2007 5:45 pm

Re: portable substitute for "Open command window here"

#6 Post by freakazoid »

is it stealth? ;)

lautrepay
Posts: 715
Joined: Sat Mar 26, 2011 2:31 am

Re: portable substitute for "Open command window here"

#7 Post by lautrepay »

m^(2) wrote:Creating a button or something with this functionality should be easy in any reasonably good file manager. I can attest that it is with Double Commander and Total Commander, but I'm sure that most competitors support it just as easily.
I'll see if Q-Dir is a "reasonably good file manager" :wink:
SYSTEM wrote:7plus can do that as well. (The hotkey is Win-C.)
Correct, thanks. However, PromptHere can do one little thing more. Inside a folder, if you select a subfolder and press the hotkey, the command prompt will open with the selected subfolder path.
As I really like playing with the context menu, I have Open++, FastExplorer, KuShellExtension and FileMenu Tools installed, but it seems that none of them allow me to solve the problem that Onesimus Prime propunded. Could you please explain your solution?

freakazoid
Posts: 1212
Joined: Wed Jul 18, 2007 5:45 pm

Re: portable substitute for "Open command window here"

#8 Post by freakazoid »

lautrepay wrote:but it seems that none of them allow me to solve the problem that Onesimus Prime propunded. Could you please explain your solution?
Sorry! I misread the original post!

Re: hotkey - check out this Lifehacker article:
http://lifehacker.com/5306401/open-a-ne ... h-a-hotkey

Should be able to turn this into a simple program using AutoHotKey.

Also check out this SuperUser thread:
http://superuser.com/questions/205359/h ... d-shortcut
is it stealth? ;)

lautrepay
Posts: 715
Joined: Sat Mar 26, 2011 2:31 am

Re: portable substitute for "Open command window here"

#9 Post by lautrepay »

freakazoid wrote:
lautrepay wrote:but it seems that none of them allow me to solve the problem that Onesimus Prime propunded. Could you please explain your solution?
Sorry! I misread the original post!
No problem, I feared to be missing some hidden feature of Open++ :)
freakazoid wrote:Re: hotkey - check out this Lifehacker article:
http://lifehacker.com/5306401/open-a-ne ... h-a-hotkey

Should be able to turn this into a simple program using AutoHotKey.

Also check out this SuperUser thread:
http://superuser.com/questions/205359/h ... d-shortcut
Thanks for the links! Although both PromptHere and 7plus are written in AutoHotKey, is impressive to see how much is possible to do with a very few lines of code.
By the way, 7plus is a very complete set of tools, including a nice launcher in the style of Launchy/FARR. Thanks, SYSTEM.

Post Reply