Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!mailrus!cornell!uw-beaver!zephyr.ens.tek.com!tekig5!brianr From: brianr@tekig5.PEN.TEK.COM (Brian Rhodefer) Newsgroups: comp.sys.amiga Subject: Convenient Assign script Keywords: assign hard disk startup Message-ID: <5108@tekig5.PEN.TEK.COM> Date: 30 Nov 89 00:22:35 GMT Organization: Tektronix Inc., Beaverton, Or. Lines: 26 I keep a script file in my S: directory called "AssignHD", which is executed during my startup sequence. AssignHD consists exclusively of "Assign volume: pathname" commands, and performs nearly all of my startup assignments. I've written a little script that is useful when installing software that needs to live in a uniquely named volume. This script (which I called "PAS", standing for Permanent ASsign) both performs a "normal" assign operation AND adds a line to the end of S:AssignHD which will duplicate the assignment on all subsequent rebootings. It isn't a very smart script, but it ought to work OK unless deliberately abused. It's real short, so I'll include it here: ------------------------------------------ .key newvol,path if exists "" echo >t:pas<$$> "Assign " join s:AssignHD t:pas<$$> to t:newpas<$$> copy t:newpas s:AssignHD protect s:AssignHD +s assign delete t:#?pas<$$> endif ------------------------------------------ Brian Rhodefer