mikezwet2 0 Posted December 30, 2004 Hi, Is it possible to open a directory, so the windows opens? I want to combinate it with clipget, Zwetsloot Kunststof Kozijnen Fabriek and Mike Zwetsloot Share this post Link to post Share on other sites
SlimShady 1 Posted December 30, 2004 $Folder = ClipGet() Run('explorer "' & $Folder & '"') Share this post Link to post Share on other sites
ezzetabi 3 Posted December 30, 2004 Or $Folder = ClipGet() Run('explorer /e,"' & $Folder & '"') Share this post Link to post Share on other sites
mikezwet2 0 Posted December 31, 2004 (edited) $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 topNote #2: the title of the windows i never the same, so i can't call it with winactivate Edited December 31, 2004 by mikezwet2 Zwetsloot Kunststof Kozijnen Fabriek and Mike Zwetsloot Share this post Link to post Share on other sites
mikezwet2 0 Posted December 31, 2004 (edited) 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 topNote #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 December 31, 2004 by mikezwet2 Zwetsloot Kunststof Kozijnen Fabriek and Mike Zwetsloot Share this post Link to post Share on other sites
ezzetabi 3 Posted December 31, 2004 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 0 Posted January 1, 2005 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...... Zwetsloot Kunststof Kozijnen Fabriek and Mike Zwetsloot Share this post Link to post Share on other sites
ezzetabi 3 Posted January 1, 2005 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 1 Posted January 1, 2005 He wants to "open a directory" not "select a directory". Share this post Link to post Share on other sites