![]()
Hi All,
I am new to vb scripting and was hoping someone can help me out. I have a vbscript that I have included below that I am using to make an application terminal server/ citrix capable. What I am trying to do is inside the vbscript call a registry file that will apply to each new users HKCU path noted in the reg file. The challenge is that i have a reg file, but can't seem to figure out what variable I need to put inside the reg file to change the username to be like a %userprofile% or %username% so that when the registry gets imported into each users profle its shows their username and not %userprofile% or something similar. The application wont fire off if that part in the registry doesn't have a valid path. I have in the regfile now %username% and its not working.
I have attached vbscript application code and the small reg code. I am hoping that there is just some other variable that I can place in the .reg file that will make it change itself to the username logging in. I am also curious if the statement in the vbscript is correct to call the registry file. If anyone knows of an easier to gets these reg values imported I would be ecstatic.
Thank you Gurus




Reply With Quote