Last updated 2004-06-28 by Roedy
Green ©1996-2004 Canadian Mind Products
Java definitions: 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
You are here : home : Java Glossary : S words : SET.
SET is a also feature of Windows and NT to pass large numbers of parameters to programs. It is not directly suppored by Java since there is no equivalent in other operating systems. You can use JNI to get at it, or exec, or you can snaffle set parms and pass them in the java.exe command line with the -D option. Java Properties take the place of Windows SET environment and INI files. You could also read them capturing output of an exec 'ed SET . To set them would require some JNI. In NT/W2K/XP they are stored in the registry. Set variables are supposed to be case insensitive, but they are not quite. Traditionally they are written all upper case. Don't put quotes around the SET value, even when it contains spaces, but put them around the set variable and comparing value in an IF statement: e.g.
SET CUSTOMER=Roedy Green IF "%CUSTOMER%" == "Roedy Green" Echo That's me
home |
Canadian Mind Products | |||
| mindprod.com IP:[24.87.56.253] | ||||
| Your IP:[80.134.30.163] | ||||
| You are visitor number 1487. | ||||
| Please send errors, omissions and suggestions | ||||
| to improve this page to Roedy Green. | ||||
| You can get a fresh copy of this page from: | or possibly from your local J: drive mirror: | |||
| http://mindprod.com/jgloss/set.html | J:\mindprod\jgloss\set.html | |||