Jump to content

Judge ET tool, if not installed, not loader and prompt.


andy_lee

Recommended Posts

Sometimes, some routine need ET ,

If routine call command is "test" , so call "test" , frist, judge ET,if not installed , Pop-up prompts.

Edited by andy_lee
Link to comment
Share on other sites

 (if (findfile "acetutil.arx")

 

Problem has been resolved!

 

andy_lee,

with

 (if (findfile "acetutil.arx")

you are only testing the file existence at your system, to test if loaded, try

 
(if (member "acetutil.arx" (arx))

HTH

Henrique

Link to comment
Share on other sites

andy_lee,

with

 (if (findfile "acetutil.arx")

you are only testing the file existence at your system, to test if loaded, try

 
(if (member "acetutil.arx" (arx))

HTH

Henrique

 

Thank you so much!hmsilva, That's good!

Link to comment
Share on other sites

You're welcome, andy lee!

Glad I could help

 

Henrique

 

;) Good friend!

 

Could like this

(if (or (member "acetutil.arx" (arx)) (and (findfile "acetutil.arx")(arxload "acetutil.arx")))

Link to comment
Share on other sites

Maybe something like this

(if (not (member "acetutil.arx" (arx)));; test if loaded
 (if (findfile "acetutil.arx");; if not, test if find
   (arxload "acetutil.arx");; if find, load
   (prompt "\n\"acetutil.arx\" wasn't found on the system!!!");; prompt 
   )
 (prompt "\n\"acetutil.arx\" was already loaded!!!");; prompt
 )

 

HTH

Henrique

Link to comment
Share on other sites

Maybe something like this

(if (not (member "acetutil.arx" (arx)));; test if loaded
 (if (findfile "acetutil.arx");; if not, test if find
   (arxload "acetutil.arx");; if find, load
   (prompt "\n\"acetutil.arx\" wasn't found on the system!!!");; prompt 
   )
 (prompt "\n\"acetutil.arx\" was already loaded!!!");; prompt
 )

 

HTH

Henrique

 

Without such redundancy . Thank a lot!

Link to comment
Share on other sites

Without such redundancy . Thank a lot!

andy lee,

it's not redundancy, is just a way to get feedback from the test function...

 

Henrique

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...