eidolon74 Posted June 30, 2004 Share 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"') Link to comment Share on other sites More sharing options...
tutor2000 Posted June 30, 2004 Share 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 Link to comment Share on other sites More sharing options...
emmanuel Posted June 30, 2004 Share 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) Link to comment Share on other sites More sharing options...
emmanuel Posted June 30, 2004 Share 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) Link to comment Share on other sites More sharing options...
ezzetabi Posted July 29, 2004 Share 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now