add wait on Shell.Execute

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • ononolu
    Forum Member
    • Jul 2006
    • 4

    add wait on Shell.Execute

    Hi Everybody!!

    How I can add wait on Shell.Execute like in File.Run?

    Tkank!
  • Intrigued
    Indigo Rose Customer
    • Dec 2003
    • 6138

    #2
    That's one of the pluses of using File.Run(), it has that option where Shell.Execute() does not.
    Intrigued

    Comment

    • ononolu
      Forum Member
      • Jul 2006
      • 4

      #3
      Hmm.... ok thanks!!

      Comment

      • Intrigued
        Indigo Rose Customer
        • Dec 2003
        • 6138

        #4
        ononolue, np.
        Intrigued

        Comment

        • ononolu
          Forum Member
          • Jul 2006
          • 4

          #5
          Have it an easy way to make a wait after Shell.Execute?
          Last edited by ononolu; 07-25-2006, 03:27 PM.

          Comment

          • Intrigued
            Indigo Rose Customer
            • Dec 2003
            • 6138

            #6
            Use the Action
            Code:
            Application.Sleep(put_wait_time_here_in_milliseconds_1000ms=1second)
            Intrigued

            Comment

            • ononolu
              Forum Member
              • Jul 2006
              • 4

              #7
              Hi Intrigued!

              I have this code.
              I think I have a problem because I have File.Run and Shell.Execute and I will test it but now, where I need to put Application.Sleep, at the end of another, after ";", before or after?

              File.Run("AutoPlay\\Docs\\applications\\izarc\\IZA rc35.exe", "/VERYSILENT", "", SW_SHOWNORMAL, true);
              File.Run("AutoPlay\\Docs\\applications\\adaware\\a awsepersonal.exe", "/s", "", SW_SHOWNORMAL, true);
              Shell.Execute("AutoPlay\\Docs\\applications\\acrob at\\acrobat7fr\\Adobe Reader 7.0.8 - Français.msi", "open", "/qb", "", SW_SHOWNORMAL);
              Shell.Execute("AutoPlay\\Docs\\applications\\msn messenger\\MsnMsgs.msi", "open", "/qb", "", SW_SHOWNORMAL);
              File.Run("AutoPlay\\Docs\\applications\\adaware\\p llangs.exe", "/s", "", SW_SHOWNORMAL, true);
              File.Copy("AutoPlay\\Docs\\applications\\adaware\\ defs.ref", "C:\\Program Files\\Lavasoft\\Ad-Aware SE Personal\\", true, true, false, true, nil);
              File.Run("AutoPlay\\Docs\\applications\\spybot\\sp ybotsd14.exe", "/verysilent", "", SW_SHOWNORMAL, true);
              File.Run("AutoPlay\\Docs\\applications\\spybot\\up date\\spybotsd_includes.exe", "/S", "", SW_SHOWNORMAL, true);
              Shell.Execute("AutoPlay\\Docs\\applications\\java\ \J2SE Runtime Environment 5.0 Update 7.msi", "open", "/qb", "", SW_SHOWNORMAL);
              File.Run("AutoPlay\\Docs\\applications\\ccleaner\\ ccsetup131_basic.exe", "/S", "", SW_SHOWNORMAL, false);
              Shell.Execute("AutoPlay\\Docs\\applications\\googl e\\GoogleToolbarInstaller.exe", "open", "/q /d", "", SW_SHOWNORMAL);



              1000 thanks
              sorry for my english

              Comment

              Working...
              X