Discussion Locked

logon script

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I need to make a batch file that will check two things. First,if the environmental variable is being set. I know you can do this with the set command but i do not need all those results. second i need to check the hkcu\temp and tmp.
If these do not exist Iwant to be able to set them, if they do exist I do not want to do anything. what commands should I use to make this happen? should I utilize just set or can i blast it with regkey?

1 reply

by nbotes

If these are enviro you can check the with a IF

So you would use
IF DEFINED enviro goto donothing
set enviro

:donothing

This discussion is closed to new replies.