Page 1 of 1

Macro Buttons open directory

Posted: Fri Aug 31, 2018 8:33 am
by BangDroid
I'm having a small issue with using macro buttons to open a specific directory in Windows Explorer.
I have tried the following:
Request for Button ON /Trigger IN:

Code: Select all

System.Execute("%windir%\Windows\explorer.exe", "C:\path\of\directory", "")
This opens explorer but not to the desired path.

Using Windows Run prompt I can open a directory with

Code: Select all

explorer \path\to\directory
So I also tried
Request for Button ON /Trigger IN:

Code: Select all

System.Execute("%windir%\Windows\explorer.exe \path\of\directory", "", "")
but this does not seem to function at all.

Any ideas?

Re: Macro Buttons open directory

Posted: Fri Aug 31, 2018 8:45 am
by BangDroid
Ok so I have found this technically works, but with some issues:

Request for Button ON /Trigger IN:

Code: Select all

System.Execute("%windir%\system32\cmd.exe","C:\path\to\directory","/C start .")
Because it opens a cmd prompt, on my system sometimes there is a delay with that, so it is laggy.


Am I missing something obvious?