Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New 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\~?

  2. #2
    New 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';
      }


 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •