Thanks,

My new lines look like this:
---------------------------
If Not InGroup("APP_TOOLS")
rmdir /S /Q "%userprofile%\Start Menu\Programs\tools"
EndIf

If Not InGroup("APP_UTILS")
rmdir /S /Q "%userprofile%\Start Menu\Programs\utils"
EndIf
---------------------------
But still not removing those folders and i get a 0 every time i run the script.

Kix32.exe logintest.kix
0

--------------------------
If Not InGroup("APP_TOOLS")
rmdir /S /Q "%userprofile%\Start Menu\Programs\tools"
@Error <> 0
? "Error " + @Error + " has been encountered"
EndIf
-------------------------
Used the @error macro, but it returns no errors.

\:\(




Edited by awoei (2007-01-04 02:00 PM)