0

I have to create system variable in Windows through calling CMD.Exe. I try :

cmd.exe /C maVar=maVal

Saddly, no maVar is created.

If i open CMD.Exe and type :

maVar=maVal

-> maVar is created.

Saddly, i have to do it through calling cmd.exe, not launching cmd.exe. Anyone know what is ly mistake ?

Thanks

1 Answers1

0

Use setx command to create system variable, set command define variables only inside of current cmd session.