Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: atwoodr on March 29, 2014, 04:26:30 PM

Title: Auto-detecting Mach3 Installation directory
Post by: atwoodr on March 29, 2014, 04:26:30 PM
Hi Everyone,

Is there a way I can auto-detect the Mach3 installation directory? I have some VB code that right now assumes the installation directory is C:\Mach3\... as a temporary measure.  Is there any way to tell where the program is installed from the VB code itself on the fly?

Thanks,
Ryan
Title: Re: Auto-detecting Mach3 Installation directory
Post by: ger21 on March 29, 2014, 05:09:55 PM
GetMainFolder()
Title: Re: Auto-detecting Mach3 Installation directory
Post by: atwoodr on March 29, 2014, 05:31:01 PM
Cool, it works thanks!