Gordon,

If it is a folder...

If EXIST ("%USERPROFILE%\Desktop\Syteline") = 1
RD "%USERPROFILE%\Desktop\Syteline"
Endif

Another way to do this...

IF GetFileAttr( "%USERPROFILE%\Desktop\Syteline" ) = 16
RD "%USERPROFILE%\Desktop\Syteline"
ENDIF

HTH,

- Kent

[ 27 March 2002, 15:51: Message edited by: kdyer ]
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's