Sinisterly
%?% statements and if - Printable Version

+- Sinisterly (https://sinister.ly)
+-- Forum: Coding (https://sinister.ly/Forum-Coding)
+--- Forum: Coding (https://sinister.ly/Forum-Coding--71)
+--- Thread: %?% statements and if (/Thread-statements-and-if)



%?% statements and if - Inori - 03-19-2014

I'm trying to expand my knowledge of batch and I started thinking about the % statements. ones like %os%, %userprofile% and %cd%. Does anyone know a site where I can get a full list? for some reason, google nullifies % signs so that doesn't work. And I was also wondering about how much you can do with the if statement in batch. I know in JS and C/C++ it's a big deal but in batch all I know is how to create menus with it...
thanks, w0lf


RE: %?% statements and if - loading... - 04-05-2014

Try typing "list of Batch variables"


RE: %?% statements and if - Deque - 04-05-2014

http://ss64.com/nt/syntax-variables.html

They are called environment variables.


RE: %?% statements and if - Inori - 04-05-2014

Biggrin thanks guys!


RE: %?% statements and if - ArkPhaze - 04-05-2014

You don't need the internet to look them up. Just type in the cmd prompt:
Code:
set