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
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
Comment