1.

Solve : Looking for all %% calls listing?

Answer»

I was wondering is anyone knew of a site that shows all % % system calls. GOOGLE search for batches %% calls shows tons of Phone Call info but no system call info.

I am looking for a list that shows %date% , %time% , and all others available to use for DOS Batches for both OLDER DOS as well as Windows % % system calls from command line. Saw a reference to %processor_architecture% in someone elses post here regarding and autorun issue and that sparked my interest to see if I can find a list of all DOS/Windows % % calls.

ThanksType SET at the command prompt. And by the way, they are VARIABLES (short-formed to VAR), not calls. Extracted from SET/? in Win XP.
Quote

If Command Extensions are enabled, then there are several dynamic
environment variables that can be expanded but which don't show up in
the list of variables displayed by SET.
These variable values are
computed dynamically each time the value of the variable is expanded.
If the user explicitly defines a variable with one of these names, then
that definition will override the dynamic one described below:

%CD% - expands to the current directory string.

%DATE% - expands to current date using same format as DATE command.

%TIME% - expands to current time using same format as TIME command.

%RANDOM% - expands to a random decimal number between 0 and 32767.

%ERRORLEVEL% - expands to the current ERRORLEVEL value

%CMDEXTVERSION% - expands to the current Command Processor Extensions
version number.

%CMDCMDLINE% - expands to the original command line that invoked the
Command Processor.


More info here....

This site claims to have a full listing of system information variables.

Hope this helps.

There's something wrong with their definion of %random%. It doesn't expand to a decimal, it expands to an integers. Point taken.

Here's a Wiki...

Quote from: Helpmeh on October 01, 2009, 04:30:40 PM
There's something wrong with their definion of %random%. It doesn't expand to a decimal, it expands to an integers.

"Decimal" means base-10.Quote from: BC_Programmer on October 01, 2009, 06:56:46 PM
"Decimal" means base-10.
Ok. I thought decimal is the little . after the one's digit.

And %random% does expand to an integer. How many times does it take before an un-modified %random% expands to a number with a decimal (that is not 0 you sneaky goose). It always does. the number is base-10.

it would be completely useless if the %RANDOM% variable EVER game back a floating point number since you can't process them with set /a.


Decimal; "dec" means 10.

hexadecimal: hex (6)+ dec(10) = 16 (0...9, A...F).

One can even "invent" bases using the standard prefixes.

base 18? Probably Octadecimal. base 8? Octal.

an Integer cannot have a fractional portion but a floating-point number can be an integer.Hey Cool,

Thanks for info...so they are reserved variable names then I am guessing?

That would be why google had no hits for me...wrong statement..lol

Many thanks to all who CONTRIBUTED info on this.

Dave


Discussion

No Comment Found