home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Share Gallery 1
/
share_gal_1.zip
/
share_gal_1
/
UT
/
UT214.ZIP
/
SEBFU40.LZH
/
INSTR.DOC
< prev
next >
Wrap
Text File
|
1991-09-14
|
3KB
|
115 lines
I N S T R Ver. 4.0
(C)1989,1990,1991 Scanlon Enterprises
INSTR is a small utility to get the position of a specified
character in any DOS environment variable.
This utility can be used in conjunction with the MID.COM utility
to retrieve portions of a string, or simply to check if a string
contains a specified character.
Syntax : INSTR var /Cc /Dn /Bn
**NOTE** 'var', and either '/Cc' or 'Dn' must be speified
Where : 'var' is the variable to search for a specified character
'/Cc' sets INSTR to search for character 'c'
'/Dn' sets INSTR to search for character of decimal value
'n' IE... if 'n'=65 then character is an A
'/Bn' Start search in 'var' at character position 'n'
Defaults: '/Bn' 'n' defaults to 1
ERRORLEVELS: 255 (0FF) = Program Problem (call Author)
130 = Invalid option / param NOT specified
129 = 'n' of option '/Bn' out of range
128 = 'var' NOT found
1-127 = position of search char in 'var'
EXAMPLES:
INSTR PATH /C:
Finds the first occurance of the ':' in the PATH variable.
INSTR PATH /D65
Finds the first occurance of A in the PATH variable (65=A)
INSTR PATH /C: /B10
Finds the first occurance of ':' in the PATH variable starting
after the 10th character in the string.
For additional usage and information on using these utilities see
the file SEBFU.DOC or BATUT.DOC.
Page 1 of 2
I N S T R Ver. 4.0
(C)1989,1990,1991 Scanlon Enterprises
O R D E R F O R M
INSTR registration ..................................... $2.00
What you get :
Unlimited usage of INSTR, and phone or write in support. You
will also be placed on our mailing list for future updates and
new products.
We will ship an enhanced version of this utility if shipping and
and material charge is included (see ORDER.DOC). Enhanced version
includes these features:
Environment variable can be set to contain the positon
A string of characters can be searched for
Option to set yes/no errorlevel instead of position
and more.....
We are offering this utility seperate from SEBFU as a favor to
users who do NOT wish to use many of the SEBFU utilities.
This utility is automatically registered to you when you register
SEBFU as a product (see REG.DOC). Registering SEBFU as a product
is a better bargin, as each utility will cost less than $ .25
each.
Vendors:
You may distribute INSTR seperately, provided this document is
distributed as well. Any reasonable fee may be charged.
Send your order to : SCANLON ENTERPRISES
38354 17TH ST E.
PALMDALE, CA 93550