First off, you are mixing short and long name formats! Second, you should never assume any part of the path.

Just read the paths from the reg.
Code:
break on
$RegKey = 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders'

$Startup = ReadValue($RegKey,'Startup')
$Desktop = ReadValue($RegKey,'Desktop')

$Startup ?
$Desktop ?

;Del $Startup + '\file.ext'
;Del $Desktop + '\file.ext'

_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.