I read your question again and think you are referring to an environment variable (in a .BAT file variables are used between % signs).
If you need the contents of an environment variable then use this to get the variable from the OS
strEnv = Environ("QUERY_STRING")
============================================================
'C' is shorthand for Confusion, 'C++' much more confusion...