CMD Set Enviornment Variables Help
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
CMD Set Enviornment Variables Help
Im making a command script-type thing (is going very well can type google and it goes google xD) but how to say "if variable "a" is not equal to *somemocode* then do *this*) so "if %variable%*u tell me the'not=to sign here'*password shutdown -s -t 10 -c "HA!""
CMD Set Enviornment Variables Help
Im making a command script-type thing (is going very well can type google and it goes google xD) but how to say "if variable "a" is not equal to *somemocode* then do *this*) so "if %variable%*u tell me the'not=to sign here'*password shutdown -s -t 10 -c "HA!""
CMD Set Enviornment Variables Help
in other words how do i tell the Command Prompt that if a variable is not equal to another variable then shutdown
CMD Set Enviornment Variables Help
Is this the sort of thing you are after?set var=fooif %var%==foo (echo Shutting down) else (echo Staying up)