Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

how to create a macro to open a specific folder

If you have a question or need help, this is the place to be.
Post Reply
dmehling
Posts: 29
Joined: Wed Jun 24, 2009 12:10 am

how to create a macro to open a specific folder

Post by dmehling »

I can't quite seem to figure out how to create a macro that when triggered will open a specific folder. I know how to create macros to open specific applications, but that does not work to open a specific folder. How do I do that?
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: how to create a macro to open a specific folder

Post by Pako »

For example, the following Python script you can use to open the folder C:\.

Code: Select all

import subprocess
subprocess.Popen('explorer "C:\"')
Or you can use the following method:
OpenFolder.jpg
Pako
Last edited by Pako on Wed Sep 29, 2010 5:58 am, edited 1 time in total.
dmehling
Posts: 29
Joined: Wed Jun 24, 2009 12:10 am

Re: how to create a macro to open a specific folder

Post by dmehling »

thanks
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: how to create a macro to open a specific folder

Post by Pako »

You're welcome. Here, unfortunately, some people are not able to thank you for the much more difficult work.
Pako
Post Reply