Author |
Topic |
|
p_ewing
5 Posts |
Posted - 03/26/2012 : 08:24:40
|
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
2615 Posts |
Posted - 03/26/2012 : 08:27:37
|
This seems to work for me:
acShellExecute("open", "C:\\windows\\", "", "", 1)
|
|
|
p_ewing
5 Posts |
Posted - 03/26/2012 : 08:38:55
|
Thanks. That works for me too. |
|
|
aShai33
21 Posts |
Posted - 07/28/2013 : 02:52:02
|
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!!! |
|
|
Rob
USA
2615 Posts |
Posted - 07/28/2013 : 11:03:37
|
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) |
|
|
aShai33
21 Posts |
Posted - 07/28/2013 : 13:28:33
|
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. |
|
|
imafishimafish
USA
19 Posts |
Posted - 08/12/2013 : 12:15:12
|
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. |
|
|
mesersmith
Romania
45 Posts |
Posted - 10/24/2013 : 15:54:08
|
And if I want to open explorer in Computer? How can I put a print screen to exemplify what I mean? |
|
|
Rob
USA
2615 Posts |
Posted - 10/24/2013 : 15:58:04
|
This works for me:
acRunProgram("c:\\windows\\explorer.exe","/e,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}",0, 1) |
|
|
mesersmith
Romania
45 Posts |
Posted - 10/24/2013 : 16:00:04
|
Works great. Thanks a lot.
|
|
|
|
Topic |
|