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