home *** CD-ROM | disk | FTP | other *** search
- APATH Copyright (c) 1992 Walt Stoneburner
- v2.2 All Rights Reserved. Wizard Workshop and Company
-
- Altering the current PATH can become a pain at times, especially when the
- changes are minor. APATH was designed to allow PATH manipulations quickly
- and easily using little overhead.
-
- APATH is ideal for modifying the path in make files, batch files, LAN
- administration login/logout batch files, and the command line without
- the excess baggage of saving and restoring the environment variables.
-
- By being able to reduce extra paths in the PATH environment variable
- until they are needed should allow quicker searching of the path.
- Software that requires its directory be in the path can be activated by
- a batch file which makes the path addition, runs the software, and
- removes it without accidently restoring an invalidated path.
-
-
- Usage:
- APATH [/M] [+|-]path[;path...]
-
- /M Changes affect the master environement.
- No parameter changes parent's environment.
-
- path Any directory path. Multiple paths may be
- specified separated by semicolons. If the
- path is not already part of the PATH it
- will be prepended to the front. If it is,
- the path addition will be ignored.
-
- +path Same as above, but the specified path will
- be appended to the PATH variable's end.
-
- -path The specified path will be removed from
- the PATH variable. If the path can not be
- found, the deletion will be ignored.
-
- Multiple prepends, appends, and deletes may be specified on a line.
- Only the first character of the path sequences may be a - or +.
-
- Examples:
- APATH C:\UTIL Prepend C:\UTIL to front of PATH.
-
- APATH +C:\UTIL Append C:\UTIL to end of PATH.
-
- APATH -C:\UTIL Remove C:\UTIL from PATH.
-
-
- APATH /M C:\UTIL;C:\TMP Prepend C:\UTIL and C:\TMP to PATH
- in master environment only.
-
- APATH +C:\UTIL;C:\BIN -D:\TMP F:\USR\LIB
- Append C:\UTIL and C:\BIN,
- Delete D:\TMP, and
- Prepend F:\USR\LIB to PATH.
-
- Note: The prepend argment will affectively reverse the order of the
- paths specified. e.g. APATH A;B;C will make PATH=C;B;A
- This is because A is prepended, then B is prepended in front
- of the A, and finally C is prepended infront of the B.
-
- Using the + to append will produce arguments appended to the
- path in the same order they are specified in.
-
-
-
-
- Version History
-
- v1.0 APATH developed an extensive testing and multiple revisions before
- first public release. Appends, Deletes [-], and Prepends [+] paths
- to the PATH environment variable. Modifies the parent environment.
- APATH was written completely in assembly language in an effort to
- keep size down and speed up.
- v2.0 Reversed meaning of + to mean append and made default prepend.
- v2.1 Reduced code size 800 bytes.
- v2.2 Added /M for master environment. Reduced source code 15 bytes.
- Bug fix for empty environment.
-
-
- Thank You List
- Many thanks to Doug "Power User" Austin who beta-tested the software,
- gave me better insight on making the user interface better, corrected
- some documentation errors, and laughed at the jokes in the documentation
- without a lot of prodding. He has the talent for finding the non-trivial-
- obvious mistakes.
-
-
-
- Disclaimer & Other Legal Stuff
-
- NO LIABILITY FOR CONSEQUENTIAL DAMAGES
- In no event whatsoever shall the author, suppliers of APATH, or basically
- anyone in the universe, be held liable for any damages whatsoever
- (including, without limitation to, damages for loss of business profits,
- business interruption, loss of business information, other pecuniary
- loss, paper cuts, or the destruction of the galaxy) arising out of the use,
- abuse, misuse, or inability to use this program, even if the author has
- been advised of the possibility of such damages. If you are uncomfortable
- with the above, please do not use the program or send any money. Look,
- this program was written for personal use; it worked well for me, so I'm
- virtually giving it away; I don't want my tush sued off because I was
- just being generous.
-
- NO WARRANTY EXPRESSED OR IMPLIED
- While you are free to try out the software for 30 days, do not send any
- money until you are satisfied with the program. Monies can not be
- returned. No warranty or guarantee is provided that the software will
- operate as stated in this manual.
-
- GRANT OF LICENSE
- After sending the registration card below, you are free to use APATH
- on as many personal machines as you can possibly get your hands on from
- now until the Advent of Christ. Businesses are site licensed for a finite
- number of copies executing simultaneously on different machines (see
- registration card).
-
- COPYRIGHT
- This software is owned by Wizard Workshop and Company. You are free to
- modify and patch this version to suit your needs. However, please do not
- redistribute the patched version; you may redistribute the patch and/or
- instructions for making the patch. We would prefer people obtained clean
- copies in the event we choose to offer technical support.
-
- TECHNICAL SUPPORT
- We make no claims or promises for offering technical support. However,
- if you write us, we'll consider it. If you bribe us, we'll take you
- very seriously.
-
- OTHER RESTRICTIONS
- Don't hurt anyone. It isn't nice. Look both ways before crossing the
- street. Kids, don't smoke or do drugs. And if you're gonna drink and
- drive, get your parents' permission first.
-
- CUSTOMER REMEDIES
- Take an aspirin. Short from that, we can't help you.
-
-
-
- Contact Us Via EMail
-
- If you'd like to write and try to weasel support, technical information,
- or source code from the author, he can -indirectly- be reached by the
- following EMail addresses.
-
- Please state clearly that your message pertains to APATH (give the
- version number). These friendly people below will get the message to me
- one way or another and are not necessarily responsible for answering
- your pleas. They are certainly not responsible if anything goes wrong.
-
- CompuServe: 70651,2707 or 72137,1152
- Internet: 70651.2707@cis.com or psw@mitre.org
- GEnie: AUSI-DGATE or A.GARIES
-
-
- Registration
-
- If you are an individual using APATH for personal use, you're in luck...
- Using APATH will cost you nothing, however, I would like you to send the
- registration form below in anyhow. By not charging a fee to individuals,
- I'm hopeful you'll feel more inclined to let me know you are using
- something I've written, and therefore I should devote more free time to
- projects like this.
-
- If you are a company, well... you're not as lucky as the individuals above.
- However. I know that you'd most likely want a site license or something
- like that. And I'm willing to do that... cheap. Very cheap.
-
- So... on with the paper work.
-
- Please fill out below and send to:
-
- Wizard Workshop and Company
- APATH Registration
- 9307 Lundy Court
- Burke, Virginia 22015
-
-
- +---------------------------------------------------------------------------+
- | |
- | Name: ________________________________ [ ] My personal use, |
- | no charge. Thanks! |
- | Company: _____________________________ |
- | [ ] My personal use; I've |
- | Address: _____________________________ enclosed $5 or more, send |
- | commented source code |
- | _____________________________ |
- | [ ] Company site license |
- | _____________________________ $15 : 1 - 19 users |
- | $25 : 20 - 49 users |
- | Phone: _____________________________ $50 : 50 - infinity |
- | Optional [ Circle: DAY NIGHT WORK ] |
- | |
- | [ ] We would like to distribute APATH with our products. Enclosed is |
- | $100 which gives us an infinite site license for this product and |
- | your permission to distribute this and future upgrades of APATH as |
- | they become publicly accessible. |
- | |
- | ( ) I am interested in other ( ) I would be interested in Beta |
- | things you develop[ed] when testing software as it is being |
- | they become available. developed. |
- | |
- | EMail Address: ________________________________________________________ |
- | |
- | Comments / How Are You Using APATH: |
- | |
- | ________________________________________________________________________ |
- | |
- | ________________________________________________________________________ |
- | |
- | ________________________________________________________________________ |
- | |
- +---------------------------------------------------------------------------+
-
-