Skip to content
Snippets Groups Projects
Commit 9ab28552 authored by rswindell's avatar rswindell
Browse files

Added 1.5 sec delay after running ipconfig (give it time to run), before

opening result text file.
parent e5215ec4
Branches
Tags
No related merge requests found
......@@ -157,6 +157,7 @@ void __fastcall TConfigWizard::FormShow(TObject *Sender)
sprintf(str,"%s /c ipconfig /all > %sipconfig.txt"
,getenv("COMSPEC"),scfg.ctrl_dir);
WinExec(str,SW_HIDE); /* there's got to be a better way! */
Sleep(1500); /* give ipconfig time to run */
sprintf(str,"%sipconfig.txt",scfg.ctrl_dir);
FILE* fp=fopen(str,"r");
char* p;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment