Environment variables in .bat

0

I wanted to know how to create a PATH variable and another CLASSPATH in the environment but user variables, NOT OF THE SYSTEM in a .bat file if they are not created

    
asked by user6905478 31.10.2016 в 14:10
source

1 answer

1

The variable PATH is always defined but if you define it for the user this definition + the one of the system is taken; if you want to save it outside of the .bat it's something else only works for what you run inside it:

IF NO DEFINED PATH SET PATH='YO SIEMPRE ESTOY DEFINIDO'
IF NO DEFINED CLASSPATH SET CLASSPATH=OK
ejecutar X...Y y Z
    
answered by 31.10.2016 в 15:59