D
David Topham
Hi
Does anyone know how, in a batch file to use the result of one command in
the syntax of another.
Say, for example, I want to set what the VER command returns (ie the string
describing the Windows version) to an environment variable, somthing along
the lines of:
set MYVAR=VER
Only of course that just sets it to the string "VER", not the return of the
VER command.
[Just to clarify, I'm *sure* there are better ways of getting the windows
version in an environment variable, I'm just using this as an example of the
sort of thing I'm trying to do :-]
(For multi-OS types, this is similar to what is possible in some Un!x shells
by using backticks, ie the ` quote).
Any ideas.
Thanks
David
Does anyone know how, in a batch file to use the result of one command in
the syntax of another.
Say, for example, I want to set what the VER command returns (ie the string
describing the Windows version) to an environment variable, somthing along
the lines of:
set MYVAR=VER
Only of course that just sets it to the string "VER", not the return of the
VER command.
[Just to clarify, I'm *sure* there are better ways of getting the windows
version in an environment variable, I'm just using this as an example of the
sort of thing I'm trying to do :-]
(For multi-OS types, this is similar to what is possible in some Un!x shells
by using backticks, ie the ` quote).
Any ideas.
Thanks
David