Sign in to follow this  
Followers 0
eidolon74

Help please.....on opening a .ini file

5 posts in this topic

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



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

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

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

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

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
Sign in to follow this  
Followers 0