Java Glossary : SET

CMP home Java glossary home Menu no menu 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
Mastercard and Visa's under-development protocol for sending encrypted credit card numbers over the net. What makes it interesting in that the merchant never gets to know your credit card number -- only the bank does. This will cut out most credit card fraud.

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

Gotcha

You might try to set an environment variable by execing a SET command. This won't work, since the set environment is restored as soon as exec terminates. The SETs you do in a bat file are only good inside that bat file for the time the bat file in running.


CMP logo
CMP_home
home
Canadian Mind Products CSS
HTML Checked!
ICRA ratings logo
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