home *** CD-ROM | disk | FTP | other *** search
- FreeWare from The Chocolate Factory
- by Algernon
-
- IFNULL.COM
-
- Copyright (c) September 3, 1988
-
-
- IFNULL.COM is another free batch file utility from The Chocolate
- Factory, written by Algernon. It simply tests whether a batch
- variable is null (egual to "") or not. The syntax is
-
- IFNULL variable
-
- Example: go.bat
-
- echo off
-
- ifnull %1
- if errorlevel 2 goto end
- if errorlevel 1 goto try
- if errorlevel 0 goto null
-
- :try
- if %1 == bat goto batch
- if %1 == BAT goto batch
-
- :batch
- c:
- cd \sys\bat
- dir
- goto end
-
- :null
- blank
- echo To use GO type `GO' name, where `name' is a directory name
- echo supported by the go.bat file.
- blank
-
- :end
-
- *****************************************************************
-
- The example tests whether the batch variable %1 contains a null
- string or not. If the variable is null then an errorlevel of 0
- is returned by the program. If the variable is equal to a ? then
- a help page is printed to the standard output device (usually the
- screen), and an errorlevel of 2 is returned; otherwise, an
- errorlevel of 1 is returned.
-
- If you have an idea for a slick little utility that you could use
- and don't want to program it yourself, send the idea to
-
- The Chocolate Factory
- 1117 E. Roosevelt Rd #3
- Wheaton, Ill. 60187
-
- Who knows, Algernon may write it up for you.
-
- Any programs resulting from ideas submitted to The Chocolate
- Factory are the property of The Chocolate Factory and the
- programmer who writes the program. The Chocolate Factory and its
- programmer(s) reserve the right to charge fees for programming as
- they see fit.
-