DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Open parent folder in a new window utility for w7  (Read 6,602 times)

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,947
Open parent folder in a new window utility for w7
« on: December 04, 2012, 11:46 PM »
I would an utility to open in a new window the parent folder with a shortkey or similar.

In xp was Control over the up arrow in the explorer window.

Best Regards

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,947
Re: Open parent folder in a new window utility for w7
« Reply #1 on: December 07, 2012, 07:04 PM »
:-[

In w7 i know the possibility to duplicate the active window with Control+N

But how can I open the parent folder of the active window with a shortkey ?

Best Regards
:P

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • Coding Snacks
Re: Open parent folder in a new window utility for w7
« Reply #2 on: December 07, 2012, 07:36 PM »
After you hit Control-n and the new window opens, hit Alt-Up Arrow. It will go up to parent folder.
Alt-Up Arrow moves to parent folder in the same window in W7 and Vista.

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,947
Re: Open parent folder in a new window utility for w7
« Reply #3 on: December 07, 2012, 08:35 PM »
Thank you very much Miles.
I have seen that in "gúúgler", but I would only one sequence.
Best Regards

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,947
Re: Open parent folder in a new window utility for w7
« Reply #4 on: December 07, 2012, 08:40 PM »
One idea may be :

Spoiler (click to show/hide)
SetBatchLines, -1
SetBatchLines, 1
CoordMode, Mouse, Screen
Gui, +AlwaysOnTop -Caption +Border +ToolWindow
Gui, Show, x0 y0 w9 h9 Hide, AHK.WE2CB.DND.GUI
Return
#LButton::
MouseGetPos, X, Y
GuiX := X-30
GuiY := Y-30
Gui, Show, x%GuiX% y%GuiY%
MouseClickDrag, Left,,, GuiX+3, GuiY+3, 0
MouseMove, X, Y
Gui, Hide
Return
GuiDropFiles:
RegexMatch(A_GuiControlEvent, ".*\\", path)
run, explorer.exe %path%
Return

is it good code ?
Best Regards
:-*

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,947
Re: Open parent folder in a new window utility for w7
« Reply #5 on: December 07, 2012, 09:56 PM »
I tried but only open the same window and is necessary select a file in the folder. So don't go in empty folders.

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • Coding Snacks
Re: Open parent folder in a new window utility for w7
« Reply #6 on: December 07, 2012, 10:41 PM »
Code
GroupAdd,ExplorerGroup, ahk_class CabinetWClass
GroupAdd,ExplorerGroup, ahk_class ExploreWClass
#IfWinActive ahk_group ExplorerGroup
; alt winkey p
; 250 sleep is about 1/4 second. adjust up or down as needed on your PC
!#p::
  Send,^n
  Sleep,250
  Send,!{UP}
return

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,947
Re: Open parent folder in a new window utility for w7
« Reply #7 on: December 07, 2012, 11:31 PM »
Running to try
:-*

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,947
Re: Open parent folder in a new window utility for w7
« Reply #8 on: December 07, 2012, 11:33 PM »
;D

Eurekaaaaaaaaaa workingggggggggg

Nice Indeed Miles Ahead

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • Coding Snacks
Re: Open parent folder in a new window utility for w7
« Reply #9 on: December 07, 2012, 11:50 PM »

Original address: https://www.donationcoder.com/forum/index.php?topic=33143.0