eidolon74 0 Posted June 30, 2004 Ok, I am sure I am missing the obvious but this line works: RunWait(@comspec & ' /c '& $variable2 &'\hl7.ini','',@SW_HIDE) And this one doesn't. Any ideas? Runwait(@COMSPEC & ' /c start "c:\report.ini"') Share this post Link to post Share on other sites
tutor2000 0 Posted June 30, 2004 Ok, I am sure I am missing the obvious but this line works:RunWait(@comspec & ' /c '& $variable2 &'\hl7.ini','',@SW_HIDE)And this one doesn't. Any ideas?Runwait(@COMSPEC & ' /c start "c:\report.ini"')You trying to open the ini or read the ini?Did you check the help file?Rick Only $2.00 with Resale Rights How to Block Better for Martial Artists and NonMartial Artistshttp://kirkhamsebooks.com/MartialArts/Bloc...tterEbook_m.htm Share this post Link to post Share on other sites
emmanuel 0 Posted June 30, 2004 Ok, I am sure I am missing the obvious but this line works:RunWait(@comspec & ' /c '& $variable2 &'\hl7.ini','',@SW_HIDE)And this one doesn't. Any ideas?Runwait(@COMSPEC & ' /c start "c:\report.ini"')that's like saying "I have an apple, but it doesn't look like an orange", each of those lines tries to do something different. run(@comspec & " /c start c:\file.ini","",@SW_HIDE)works for me though. "I'm not even supposed to be here today!" -Dante (Hicks) Share this post Link to post Share on other sites
emmanuel 0 Posted June 30, 2004 good point, I "knew" that, having just looked at start /? yesterday, didnt' actually come to mind on this one though... "I'm not even supposed to be here today!" -Dante (Hicks) Share this post Link to post Share on other sites
ezzetabi 3 Posted July 29, 2004 Foolproof idea: Func _FoolProofStart($What) If @OSTYPE = "WIN32_NT" Then RunWait(@comspec & ' /c start "" "' & $what &'"',@WorkingDir,@SW_HIDE) Else RunWait(@comspec & ' /c start ' & FileGetShortName($what),@WorkingDir,@sw_hide) EndIf EndFunc Share this post Link to post Share on other sites