-----BEGIN PGP SIGNED MESSAGE----- dRIVES V.0,01. Copyright 1996 Jon Wickmann ALL RIGHTS RESERVED YOU HAVE TO READ THIS I wrote this software therefore I have all the rights to this software, I do not give away this software or any rights to it. However, I grant you the right to use this software if you accept all the conditions in this documentation. Disclaimer -- NO WARRANTY This software is distributed "AS IS" WITHOUT ANY WARRANTY OF ANY KIND, either expressed or implied. Without ANY warranties of merchantability or fitness for ANY particular purpose. The user (YOU) ASSUMES THE ENTIRE RISK of using this software. IN NO EVENT SHALL Jon Wickmann BE LIABLE FOR ANY DAMAGES CAUSED BY using THIS SOFTWARE. Licence This software is FreeWare for private users (You do not have to pay). People that earn money by using this software (business, governmental, professionals) have to pay (mail me and we will make a deal). If you would like to distribute this software on CD-ROM, BBS, floppies or any other mediae please mail me with a pointer to where it is distributed from (e.g. BBS name and number). IMPORTANT NOTE!! If you distribute this software you may not charge any more than the cost of distributing this software. What you can charge for is the medium it is distributed on and the maintenance of your archive. If you have been charged for more than this please mail me and tell me about it. Contact information You can reach me by email at: wickmann@sn.no By web: http://home.sn.no/~wickmann/drivesi.html What does it do? Well it checks which drive is the default drive and it can also set the default drive. In addition it can return the amount of logical drives present, but this is not quite reliable at this release. I'll write a better procedure for that part before the next release. The advantage it has is that it can put the information in exit codes, which You can use in your batch files. How to make it do what it can? The switches You can use both slashes (/) and minuses (-) before the commands. To get the default drive just issue 'drives /g' and you have the default drive, either on the screen or in exit codes. The equals for the exit codes would be 0 for A: 1 for B: 2 for C: and so on.. To set a drive to the default drive use 'drives /e x' where x is the drive. The exit code if successful is 50 or 80, on error 255. If you want to know the amount of logical drives present use 'drives /n' It will return the amount in exit codes. You can make dRIVES silent with the /s or /q switch E.g. drives /sg To get my email address you issue the command drives /c. If you need help then just drives /h. The magic it can do in a batch file If You would like a batch file to do something specific when a drive is the default drive, You could use a batch file similar to this below. - -------cut-- @echo off drives /sg IF ERRORLEVEL = 2 GOTO ccc IF ERRORLEVEL = 1 GOTO bbb IF ERRORLEVEL = 0 GOTO aaa GOTO END :aaa rem Whatever You wish to do when the default drive is A: GOTO END :bbb rem Whatever You wish to do when the default drive is B: GOTO END :bbb rem Whatever You wish to do when the default drive is C: GOTO END :END - -------cut-- It did not work? It is not so very much I can do with that. Maybe you had some Antivirus utile running that blocked dRIVES or maybe some other security utile on your system, if you encounter this more than once, please mail me and tell about it. Note !! dRIVES will give the exit code 255 on an error. What does it mean that this file is PGP signed? I have signed this file and drives.com (drives.sig) with my PGP signature, so that You have the opportunity to check wherever some one has changed these files before you got them. Please report by mail to me if they where. You can get my PGP public key from my web page and public key servers. Comments, Improvements If you have some mail them to me. Copyright 1996 Jon Wickmann Brands and product names mentioned above and in dRIVES V.0,01. are trademarks or registered trademarks of their respective holders. -----BEGIN PGP SIGNATURE----- Version: 2.6.3ia Charset: cp850 Comment: Remember security iQEVAwUBMrrTlpqvcJdBw69FAQENhQf/QE+yWOHTEHmjUI2Y2fXG4gno9tmHO73g +vT9P97w3H94TeVGWLt4Xs74rzZANWEe1aO0xKHQ0f5YzYLbfxeQsrtjKftCb50T AQM9c/T5UgDN0Ckix8yTNGpvKRaOWgj3X6dTJPRwFQo3Hl2RIWZvKKgiBhI7ZHII Tla9IbjfswmBlWdtgTi7j4RFFMrORdYTJxdHVuOeD8+IoaHUw3uepka0KZkLXFrb GMmLdMXN4unfXh3ziBDNf+0c3uPgeqwIjRVh9mNvk1IQWnx08etqAfhOb4bvRTfC oDklY1/r4++tuRo6Ri8YC/lHRzTlCy6hPUAVB48tTG6WOTvMsIAMjA== =RZ7W -----END PGP SIGNATURE-----