Gordon and Dean,

You can use RD, but the processors not the one from KiXtart.

This code will work even if the user has deleted or moved the DELTREE program.

code:
Break on cls
IF EXIST ("%userprofile%\Desktop\Syteline\nul")<>0
shell '%comspec% /c RD /S /Q "%userprofile%\Desktop\Syteline"'
Endif

RMDIR [/S] [/Q] [drive:]path
RD [/S] [/Q] [drive:]path

/S Removes all directories and files in the specified directory
in addition to the directory itself. Used to remove a directory
tree.

/Q Quiet mode, do not ask if ok to remove a directory tree with /S


Again, this is being lazy. Better code would read where the path really is from the Registry, then verify and log success, failure.

[ 27 March 2002, 18:26: Message edited by: NTDOC ]