Newbie needs help please.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Quantrac
    Indigo Rose Customer
    • Jan 2004
    • 33

    Newbie needs help please.

    I am trying to get a code that will run 2 updates. I want the 1st update to run and complete and finish, before starting the next update. The updates exe files. I have tried looking it up on the knowledge base, and have tried this code:

    File.Run("80 Upgrade\\80Upgrade.exe", "", "{_SourceFolder}\\80 Upgrade", SW_SHOWNORMAL, true);
    File.Run("90 Upgrade\\90Upgrade.exe", "", "{_SourceFolder}\\90 Upgrade", SW_SHOWNORMAL, true);

    The problem is that the when I run it live, neither exe file starts.

    Any idea's you guys have is greatly appreciated.

    Amy
  • Josué Alba

    #2
    the code is not ok
    should be

    File.Run(_SourceFolder.."\\80 Upgrade\\80Upgrade.exe", "", "", SW_SHOWNORMAL, true);
    File.Run(_SourceFolder.."\\90 Upgrade\\90Upgrade.exe", "", "", SW_SHOWNORMAL, true);

    Try like this

    Comment

    • Quantrac
      Indigo Rose Customer
      • Jan 2004
      • 33

      #3
      That did it! Thanks for your help.

      Comment

      Working...
      X