Jump to content

Recommended Posts

Posted

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"')

Posted

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

Posted

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)

Posted

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)

  • 4 weeks later...
Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...