Macro Buttons open directory

The Virtual Audio Mixer discussions and support...
Post Reply
BangDroid
Posts: 13
Joined: Sun Dec 11, 2016 7:08 pm

Macro Buttons open directory

Post 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?
BangDroid
Posts: 13
Joined: Sun Dec 11, 2016 7:08 pm

Re: Macro Buttons open directory

Post 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?
Post Reply