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

 All Forums
 Lua Scripts
 General Action Scripts
 Folder Selection
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

p_ewing

5 Posts

Posted - 03/26/2012 :  08:24:40  Show Profile  Reply with Quote
What is the command to select a specific folder opening up explorer.exe?

I've tried different parameters for c:\\windows\\explorer.exe but it doesn't work.

Rob

USA
2516 Posts

Posted - 03/26/2012 :  08:27:37  Show Profile  Visit Rob's Homepage  Reply with Quote
This seems to work for me:

acShellExecute("open", "C:\\windows\\", "", "", 1)

Go to Top of Page

p_ewing

5 Posts

Posted - 03/26/2012 :  08:38:55  Show Profile  Reply with Quote
Thanks. That works for me too.
Go to Top of Page

aShai33

21 Posts

Posted - 07/28/2013 :  02:52:02  Show Profile  Reply with Quote
I tried to figure it out myself, but wasn't able to. Could you show me what goes into each field in order to open a specific folder. E.g. How to open "Downloads" folder in windows 7? Thanks in advance, and this program is awesome!!!
Go to Top of Page

Rob

USA
2516 Posts

Posted - 07/28/2013 :  11:03:37  Show Profile  Visit Rob's Homepage  Reply with Quote
This works on my system. You'll need to update the path accordingly on yours. The easiest way is to open the Downloads folder in Windows Explorer and click in the Address Bar, that will then show the full path to the folder. Then update the script as needed, making sure you use 2 backslashes in place of single backslashes to properly escape them.

acShellExecute("open", "C:\\Users\\Rob\\Downloads", "", "", 1)
Go to Top of Page

aShai33

21 Posts

Posted - 07/28/2013 :  13:28:33  Show Profile  Reply with Quote
quote:
Originally posted by Rob

This works on my system. You'll need to update the path accordingly on yours. The easiest way is to open the Downloads folder in Windows Explorer and click in the Address Bar, that will then show the full path to the folder. Then update the script as needed, making sure you use 2 backslashes in place of single backslashes to properly escape them.

acShellExecute("open", "C:\\Users\\Rob\\Downloads", "", "", 1)




Thanks Rob, it was the double backslashes.
Go to Top of Page

imafishimafish

USA
19 Posts

Posted - 08/12/2013 :  12:15:12  Show Profile  Reply with Quote
quote:
Originally posted by aShai33
Thanks Rob, it was the double backslashes.



Just FYI, most Windows APIs work with forward slashes as path separators, even though it's not advertised.
So
acShellExecute("open", "C:/Users/Rob/Downloads", "", "", 1)
would work too.
Go to Top of Page

mesersmith

Romania
41 Posts

Posted - 10/24/2013 :  15:54:08  Show Profile  Reply with Quote
And if I want to open explorer in Computer?
How can I put a print screen to exemplify what I mean?
Go to Top of Page

Rob

USA
2516 Posts

Posted - 10/24/2013 :  15:58:04  Show Profile  Visit Rob's Homepage  Reply with Quote
This works for me:

acRunProgram("c:\\windows\\explorer.exe","/e,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}",0, 1)
Go to Top of Page

mesersmith

Romania
41 Posts

Posted - 10/24/2013 :  16:00:04  Show Profile  Reply with Quote
Works great. Thanks a lot.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
StrokesPlus Forum © 2011-2018 Rob Yapchanyk Go To Top Of Page
Snitz Forums 2000