Jump to content
Sign in to follow this  
mikezwet2

Open Directory

Recommended Posts

SlimShady

$Folder = ClipGet()
Run('explorer "' & $Folder & '"')

Share this post


Link to post
Share on other sites
ezzetabi

Or

$Folder = ClipGet()
Run('explorer /e,"' & $Folder & '"')

Share this post


Link to post
Share on other sites
mikezwet2

$Folder = ClipGet()
Run('explorer "' & $Folder & '"')

<{POST_SNAPBACK}>

This works fine, is folder in this case a sort of varible?

The window opens in the background, i want to add "@SW_MAXIMIZE" but don't know how in this script because the run line is different as in manual.....

Note #1: the window must be on top, alle files in folder must be selected en opened, thats the reason why it has to be on top

Note #2: the title of the windows i never the same, so i can't call it with winactivate

Edited by mikezwet2

Share this post


Link to post
Share on other sites
mikezwet2

This works fine, is folder in this case a sort of varible?

The window opens in the background, i want to add "@SW_MAXIMIZE" but don't know how in this script because the run line is different as in manual.....

Note #1: the window must be on top, alle files in folder must be selected en opened, thats the reason why it has to be on top

Note #2: the title of the windows i never the same, so i can't call it with winactivate

<{POST_SNAPBACK}>

I found out:

$Folder = ClipGet()
Run('explorer "' & $Folder & '"')   
sleep(400)
WinSetState($Folder, "", @SW_MAXIMIZE)
sleep(400)
Send ("^a")

No i want to close this window, i tried with winclose($folder) but doens't work......

Edited by mikezwet2

Share this post


Link to post
Share on other sites
ezzetabi

If you need opening all files it is MUCH better using FileFindFirstFile and FileFindNextFile and the ShellExecute DllCall.

Share this post


Link to post
Share on other sites
mikezwet2

If you need opening all files it is MUCH better using FileFindFirstFile and FileFindNextFile and the ShellExecute DllCall.

<{POST_SNAPBACK}>

Alright, i will look at that.

I want to close this window, i tried with winclose($folder) but doens't work......

Share this post


Link to post
Share on other sites
ezzetabi

I tried

$Folder = ClipGet()
Run('explorer /e,"' & $Folder & '"')

Sleep(5000)

WinClose($folder)

and it worked fine.

Maybe you have not the full path shown in the title bar? Check your options.

Share this post


Link to post
Share on other sites
SlimShady

He wants to "open a directory" not "select a directory".

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×