sonofalion Posted October 15, 2008 Posted October 15, 2008 Hi all, I am wondering if it is possible to run a windows explorer with a specific path, using specific columns (like Comments, owner etc.) I am using ShellExecute to open Windows Explorer. I guess it is better than using Run (but I don't know why...) Paris
BrettF Posted October 15, 2008 Posted October 15, 2008 Hi,Please refer to the infomation here.http://support.microsoft.com/kb/314853Thanks,Brett Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version!
sonofalion Posted October 15, 2008 Author Posted October 15, 2008 Hi,Please refer to the infomation here.http://support.microsoft.com/kb/314853Thanks,BrettThanks. I guess it isn't feasible after all...
BrettF Posted October 15, 2008 Posted October 15, 2008 If there isn't a way, you can always create your own Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version!
Andy007 Posted October 24, 2008 Posted October 24, 2008 I'd almost give anything just to get Windows Explorer to open the same way everytime - you know, you make changes to the columns, select different columns, make the window a little bigger. Close it down. Then open windows explorer again and shazaam... all gone to poo. I've tried the 'Remember setting', the 'Make windows the same' etc - all no good. Have you guys seen a fix for this in any of the forums? Sorry Paris, for not having anything helpful. Regards,Andy (no, the other one)
Andy007 Posted March 15, 2010 Posted March 15, 2010 (edited) Been over a year and I am still working on this. expandcollapse popupOpt("WinTitleMatchMode", 4) Opt("MustDeclareVars", 1) Opt("ExpandEnvStrings", 1) local $winpid = 0 local $handle local $open_dir = "" local $x = 0 local $y = 0 local $w = 0 local $h = 0 $open_dir = "c:\" ; Now launch Windows Explorer... $winpid = Run("Explorer.exe /e, " & $open_dir, "", @SW_SHOW) ; Get the handle of that window so it can be used in rezise... if @OSVersion = "WIN_XP" or @OSVersion = "WIN_2000" Then if WinWait("Classname=ExploreWClass", "", 45) = 0 then Exit $handle = WinGetHandle("Classname=CabinetWClass", "") else if WinWait("Classname=CabinetWClass", "", 45) = 0 then Exit $handle = WinGetHandle("Classname=CabinetWClass", "") endif ; Determine position and size... if @DesktopWidth > 1600 then $x = 250 $y = 80 $w = 1200 $h = 900 else $x = 100 $y = 50 $w = @DesktopWidth - ($x*2) $h = @DesktopHeight - ($y*2) endif ; Move and resize... WinMove($handle, $open_dir, $x, $y, $w, $h) Can now open Windows Explorer and make it the size I want. I would greatly appreciate any help on commands to set the View to Details and to unset Grouping (in Vista) if it happens to apply ITSELF again. Also if anyone can shed light on set the column sizes that would be an incredible. Thanks in advance. Any help with Windows 7 would also be appreciated... Edited March 16, 2010 by Andy007 Regards,Andy (no, the other one)
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now