This App is No Longer Maintained. Visit the Replacement at StrokesPlus.net

StrokesPlus Forum
                       
StrokesPlus Forum
Home | Profile | Active Topics
Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General Discussion
 General Discussion
 Change "homepage" of "Open Explorer" global action
 Forum Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Marcel

New Zealand
4 Posts

Posted - 04/04/2013 :  16:52:43  Show Profile
I'm trying to figure out how to change what is called the Windows Explorer startup folder when ever I use the "Open Explorer" global action. By default it opens in "Libraries" on Windows 7 which I don't use and would prefer it be "My Computer" instead.

I found instructions on how to do this (1) but am unsure how to implement these changes in Lua. Is anyone familiar enough? I thought it would simply be a matter of changing the existing Lua script for this action to the following but it doesn't work:
-- this code opens Explorer (assumes a default Windows
-- install location of C:\Windows)

acRunProgram("c:\\windows\\explorer.exe /E,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}","",0, 0, 500, 500, 2)
1: http://www.howtogeek.com/howto/17415/

Rob

USA
2615 Posts

Posted - 04/04/2013 :  16:54:55  Show Profile  Visit Rob's Homepage
You can use this to open a specific folder:
acShellExecute("open", "C:\\windows\\", "", "", 1) --sample opens the Windows folder
Go to Top of Page

Rob

USA
2615 Posts

Posted - 04/04/2013 :  17:00:27  Show Profile  Visit Rob's Homepage
This is an adaptation of your original script which works, but opens to Computer, not Windows:
acRunProgram("c:\\windows\\explorer.exe","/E,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}", 0, 1)
Go to Top of Page

Rob

USA
2615 Posts

Posted - 04/04/2013 :  17:03:57  Show Profile  Visit Rob's Homepage
By the way, it looks like my sample script for Open Explorer is not right, way too many parameters (I think it was from a long time ago). The post above is the right template.
Go to Top of Page

Marcel

New Zealand
4 Posts

Posted - 04/05/2013 :  18:42:29  Show Profile
Awesome, thanks for your help Rob (as well as StrokesPlus!).
Go to Top of Page
  Previous Topic Topic Next Topic  
 Forum Locked
 Printer Friendly
Jump To:
StrokesPlus Forum © 2011-2018 Rob Yapchanyk Go To Top Of Page
Snitz Forums 2000