So simple I completely overlooked it, d'oh.
Anyway now I am close to implementing a test of the scripts. However, another problem has occurred. I have 18 lines of code such as the following,
Code:
WriteValue('HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings',"ProxyEnable",1,REG_DWORD)
WriteValue('HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings',"ProxyServer","proxy:80",REG_SZ)
I need to be able to load only some of the settings, per group and depending on the sub net the user is in (that I have a good idea how to do). My question is, is it possible to call functions from other scripts, for example
for user A, when they log in settings from functions 1 and 3 are loaded.
for user B, only function2.
for user C, all three functions are loaded.
Currently I have had to put my lines of code into various scripts for each group, I want to group these scripts into one.
In other words can I insert into my main login script something like
call "function1" + "scriptname" or is there something else I can use. I have checked the manual + various postings but I could not find anything.
I know the above won't work, its just to give an idea.