On Startup ''stuck''

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • TimeSurfer
    Forum Member
    • Dec 2007
    • 479

    On Startup ''stuck''

    Code:
    srcWIN = _WindowsFolder;
    srcXML = File.DoesExist(""..srcWIN.."\\sysi.xml");
    if (srcXML == false) then
      Dialog.TimedMessage("Please Wait...", "Initiating first run procedures...", 10000, MB_ICONINFORMATION);
      strBAT = TextFile.ReadToString("AutoPlay\\Docs\\runonce.txt");
      strBAT = String.Replace(strBAT, "dxdiag /x c:\\sysi.xml", "dxdiag /x "..srcWIN.."\\sysi.xml", false);
      TextFile.WriteFromString("AutoPlay\\Docs\\runonce.bat", strBAT, false);
      File.Run("AutoPlay\\Docs\\runonce.bat", "", "", SW_MINIMIZE, true);
      XML.Load(""..srcWIN.."\\sysi.xml");
    else
      XML.Load(""..srcWIN.."\\sysi.xml");
    end
    problem is im trying to get the timed message to display while its running the bat file before the app shows.

    as it is the darned thing shows the message then runs the bat after the message goes away.

    anyways to achieve what im wanting?

    any help is appreciated.

    thanks,
    timesurfer
  • Worm
    Indigo Rose Customer
    • Jul 2002
    • 3971

    #2
    Look into using StatusDlg.Show instead

    Comment

    • TimeSurfer
      Forum Member
      • Dec 2007
      • 479

      #3
      thanks worm appreciate it bro both for the help and for the speedy reply

      ch33rs m8,
      timesurfer

      Comment

      Working...
      X