Jump to content

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


Recommended Posts

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

Link to comment
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)

Link to comment
Share on other sites

  • 4 weeks later...

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...