I have no means to test things now, but I think the problem is in de ~ in your DEL command line, ~ is in Kix a logical NOT.

You could try to use quotes like this
Code:
DEL 'H:\NOTES\DATA\~notes.lck' /f /c /h