I used setx to deine my variable waOk
now in a new cmd i get
C:\Users\Jml>echo %waOk% ok
C:\Users\Jml>if %waOk% == "ok" (echo ok) else (echo non ok) non ok
why the "if" doesn't works ?
and if i write echo %waOk% in a bat file and start it i get nothing in my variable !