home *** CD-ROM | disk | FTP | other *** search
- ------------------------------------------------------------------------------
-
- GetPaths and SetPaths
-
- Version 2.0
-
- Copyright (c) 1995, Jacob Pedersen, PROWESS DEVELOPMENTS
-
-
- Tutorial File
-
- ------------------------------------------------------------------------------
-
- Table of contents:
-
- What GetPaths and SetPaths can do for you.........................1.0.
- Copyright and ShareWare information...............................1.1.
- Why these 'commands'?.............................................1.2.
- Changes since first version.......................................1.3.
-
- How to do.........................................................2.0.
- Extra parameters..................................................2.1.
- The syntax of the two commands..................................2.11.
- The extra parameters............................................2.12.
- Possible combinations...........................................2.13.
-
- ------------------------------------------------------------------------------
-
- 1.0 What GetPaths and SetPaths can do for you.
-
- The zip-file consists of three files, GetPaths.EXE, SetPaths.EXE and
- Tutorial.TXT. GetPaths.EXE stores the path of all logical drives and the
- current drive in a specified file. SetPaths.EXE restores the paths and
- changes the drive to stored drive and deletes the file. Tutorial.TXT,
- the file you are now reading, is a tutorial which shows you how to use
- these 'commands' in your batch-program.
-
- 1.1 Copyright and ShareWare information.
-
- This is a shareware product. You have my specific permission to copy
- and distribute this package as long as all files remain intact and
- unchanged. If you benefit from this tutorial, or if you use the EXE-files
- in your programs you are expected to register.
-
- To register, send $05.00, £03.00 or DKK 30.00 to:
-
- PROWESS DEVELOPMENTS
- Jacob Pedersen
- Helligkorsvej 79
- 4000 Roskilde
- Denmark
-
- 1.2 Why these 'commands'?
-
- GetPaths and SetPaths was developed, because I found it necessary to be
- able, in a batch-program, to f.i change drive(s) and/or path(s) and then
- later restore the original drive and paths!
-
- If you have any ideas or anything you want to tell me, then feel free
- to send a postcard or a letter!
-
- 1.3 Changes since first version.
-
- Version:
- 1.0 Stored current drive and path.
- 2.0 Stores paths of all logical drives and the current drive.
- Names of commands changed to GetPaths and SetPaths as they now
- stores more than one path.
-
- ------------------------------------------------------------------------------
-
- 2.0 How to do:
-
- Here is an example of a program you can write:
-
- @echo off
- [drive+path] GetPaths C:\PPATH.TMP NOTA
-
- c:
- cd \CDPLAYER
- PLAYCD.COM
-
- call WIN.BAT
-
- [drive+path] SetPaths C:\PPATH.TMP
-
-
- The fictive CD-player is able to store data about CD's, but keeps it's
- database in the current directory. By using this simple batch-program you
- are able to execute the CD-player from any drive and any path, and only
- have one database!!! (Note: NOTA is left out from the SetPaths line,
- because the path of drive A is not stored therefor SetPaths woun't try to
- restore it!)
- After working under WINDOWS, we have probably changed a lot of paths and
- when we exit WINDOWS we will forsure end up in the WINDOWS directory.
- Quite annoying, but SetPaths fixes all our problems and we are back where
- we started!!!
-
- This is just one way to the GetPaths and SetPaths commands.
- You figure out how you can use them in your programs!
-
- 2.1 Extra parameters.
-
- 2.11 The syntax of the two commands:
-
- GetPaths <[drive+path] filename> (NOTA/B) (NOTB)
- SetPaths <[drive+path] filename> (NOTA/B) (NOTB)
-
- 2.12 What the extra parameters means:
-
- GetPaths: NOTA/B. You can tell GetPaths not to store information about
- drive A or B.
- NOTB. If you chose NOTA before you can add a third
- parameter to exclude drive B too.
-
- SetPaths: NOTA/B. IF you stored the paths of drive A or B, you can
- choose NOT to restore the path again.
- NOTB. If you chose NOTA before you can add a third
- parameter to exclude the path of drive B from being
- restored too.
-
- Both. Notice that you don't have to specify any of these
- parameters if you used them in GetPaths!
-
- Note: If you don't have a drive B, you don't have to specify it at
- all! GetPaths will check if a disk is present in any of the
- floppy-drives!
-
- 2.13 Possible combinations.
-
- If the last section was a little hard to understand, here are the
- possible combinations:
-
- GetPaths <filename>
- GetPaths <filename> NOTA
- GetPaths <filename> NOTB
- GetPaths <filename> NOTA NOTB
-
- SetPaths <filename>
- SetPaths <filename> NOTA
- SetPaths <filename> NOTB
- SetPaths <filename> NOTA NOTB
-