Hi guys and gals.!
It's been a while since I was last here, so I am a little rusty.! 
I have a function that looks alot like the wshShortcut UDF (http://www.kixtart.org/ubbthreads/showflat.php?Number=83318)
However, the problem I have is that the particular line that create the shell object does not always work.
Everytime I run my script, it may work, it may not.
I have tried adding...
Code:
$oShell = CreateObject("WScript.Shell")
If NOT $oShell
$oShell = 0
$oShell = CreateObject("WScript.Shell")
If NOT $oShell
MessageBox("There was an error creating your Start Menu and Desktop shortcuts." + "@CRLF" +
"Please contact a systems administrator.", "Error...", 48)
Exit
EndIf
EndIf
But it still doesn't work.
Does anyone have any ideas.?
Oh, I'm running Kix v2010.
Thanks
_________________________
Wizard
There's no place like 127.0.0.1
vb | kix | batch | html | cfm | js | english