trying to execute the following code. It appears that some computers are having trouble with %userprofile%. I think I have to put comspec in somewhere. Any ideas on the best way to do this?

Code:
 IF EXIST ("%userprofile%\Local Settings\Application Data\Microsoft\Forms\") AND ("%userprofile%\Local Settings\Application Data\Microsoft\Forms\frmcache.dat")
DEL "%userprofile%\Local Settings\Application Data\Microsoft\Forms\frmcache.dat" /c /f
ELSE
ENDIF