Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
The delete during login will not work if RunLoginScriptSync=0, thus it would not be an error as the user profile is not loaded by the time the deleet is issued.
Thus, please answer the question!
_________________________
There are two types of vessels, submarines and targets.
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Jens, based in the test code I furnished and the posted results, I think that the DelProgramGroup function is returning 0=fail 1=success. DOCs are wrong in this case.
I agree with you that the RunLoginScriptSync setting could be skewing the problem by changing the ability to delete the group. In this case the function is reporting 0=Fail and pring the text of the supposed action.
[ 28. July 2003, 22:20: Message edited by: Howard Bullock ]
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
These results confirm that the documentation is incorrect.
DelProgramGroup return 1=success or 0=fails and sets @error.
The function fails in the logon script becuase it encounters error 2 "The system cannot find the file specified."
Apparently the path to the file is not known at the time of execution during the logon script. You could possibly try to provide the full path using variable (determined from the registry or Environment).
The inability to find the file in itself does not seem to be a KiXtart error to me. Anybody else have thoughts?
Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
Check for the existance of the folder via EXIST before doing the DELPOROGRAMGROUP. Maybe the profile is not fully loaded by the time the DELPROGRAMGROUP is issued. However that would contradict the statement that RunLoginScriptSync=1 is implemented for all users.
_________________________
There are two types of vessels, submarines and targets.
Jens, I think you may have the logic reversed on RunLogonScriptSync. If set to 1 then the profile does not load until after the logon script completes. If set to 0, the profile start to load in sync but there is still no guarantee as it still depends on timing.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.
Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
I was alwasy under the impression that RunLoginScriptSync=1 will result in the following login process events: a) Load profile if necessary b) Start login script after profile finished loading c) Start Run/RunOnce registry keys after logins cript finished d) Start the shell
_________________________
There are two types of vessels, submarines and targets.