Enjoy an ad free experience by logging in. Not a member yet? Register.
|
|
Results 1 to 2 of 2
-
04-02-2016, 12:55 AM #1New to the CF scene
- Join Date
- Apr 2016
- Posts
- 2
- Thanks
- 0
- Thanked 0 Times in 0 Posts
Look for program in alternative location
In fopen.html, for var sFDPath, how can I look for firefox.exe in C:\Program Files (x86)\~ if the script cannot find the program in C:\Program Files\~?
-
04-11-2016, 02:31 AM #2New to the CF scene
- Join Date
- Apr 2016
- Posts
- 2
- Thanks
- 0
- Thanked 0 Times in 0 Posts
Am I on the right track?
Code:if (WshShell.FileExists("C:\\Program Files\\Mozilla Firefox\\firefox.exe")) { var sFDPath = 'C:\\Program Files\\Mozilla Firefox\\firefox.exe'; } else { var sFDPath = 'C:\\Program Files\\Mozilla Firefox (x86)\\firefox.exe'; }



Reply With Quote
