home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / amiga / programm / 13064 < prev    next >
Encoding:
Internet Message Format  |  1992-09-03  |  2.4 KB

  1. Path: sparky!uunet!gatech!nscf!lakes!rock
  2. From: rock@lakes.trenton.sc.us (rock)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: batch-file from icon     
  5. Message-ID: <gate.HXiJqB1w165w@lakes.trenton.sc.us>
  6. Date: Thu, 03 Sep 92 15:35:16 EDT
  7. X-Maildoor: WaflineMail 1.00r
  8. Lines: 42
  9.  
  10. #H>From: khaacks@hpwad.WAD.HP.COM (#Kai Haacks )
  11. #H>I have tried to call a shell and to execute some commands in a batch-fil
  12. #H>before I start a program. My problem is, I don't know why to start
  13. #H>executing the batch-file from activating an icon. It is possible that I
  14. #H>don't know some elementary things. Is someone there who can help me ?
  15. #H>
  16. #H>Thank you in advance,
  17. #H>Kai Haacks
  18. #H>----------------------------------------
  19. #H>khaacks@hpwadlm.wad.hp.com 
  20. #H>                            
  21.  
  22. Hmm, I think you are asking how to get an Icon to execute your script, and
  23. if so, the answer is simple indeed.  You must use a project icon instead of
  24. a tool (such as an icon that might be used for a word processor file, etc.)
  25. and then set the default tool for your icon to IconX.  So if your batch
  26. file is called 'george', then copy, say, an icon from any old project and
  27. call the icon 'george.info'.  Then use the WB Info menu for the icon and
  28. change the default tool to IconX.  Now, when you click on the 'george'
  29. icon, it will load IconX, and IconX will execute your script.  I do this
  30. all the time when I'm setting up different utilities, i.e. make a batch
  31. file to say load an often used file into ram, do some ASSIGN's, then
  32. execute the program.)  You should give a full path name to IconX for the
  33. default tool (i.e. 'sys:c/iconx'), and you can also specify what sixe
  34. window IconX will open by doing a 'WINDOW=' and a windowspec such as
  35. "CON:0/100/640/100".  This must be entered in the 'tool types' string
  36. gadget.  My personal preference is to give it a 'WINDOW=NIL:'.  This keeps
  37. IconX from opening a window at all, which is useful if you just want to set
  38. up a few things before running the main program.  It all depends on whether
  39. your script actually needs a window.
  40.  
  41. Hope this was what you were looking for.
  42.  
  43.  
  44. "Sometimes what you say is going to get right in the faces of the powerful
  45.  people who really run this world, but you don't care....  You know it's
  46.  your place to challenge authority...."
  47.  
  48. Rockerboy, digital artiste' (rock@lakes.trenton.sc.us)
  49. ---
  50.  * Amiga-Reader V2.00 * You, too, will be assimilated.
  51.                                                           
  52.