Hi

Discovered someting yesterday with the DEL command in V4,52 of Kixtart.

The appended script is part of an old script that starts Lotus Notes depending on the status of the ~notes.lck file.
The ~notes.lck file sometimes remain after a crash and to prevent the necessity of starting Notes twice to get rid of it I try to delete it before running Notes.
With Kixtart V4.22 this worked great, but when I upgraded to Kixtart V4.52 the script started deleting other files in the 'h:\notes\data' folder seemingly at random. Sometimes it even deleted all the files in the f:\admin\cmdfiles folder on the Citrix terminal server.

IF INSTR("%CLIENTNAME%","VSw")>0
DEL H:\NOTES\DATA\~notes.lck /f /c /h
IF EXIST ("H:\NOTES\DATA\~notes.lck")
MESSAGEBOX("Notes is already running from your Hdisk. Trying from W:", "Notes already running!" ,48,10)
DEL W:\NOTES\DATA\~notes.lck /f /c /h
IF EXIST ("W:\NOTES\DATA\~notes.lck")
$Valg1 = MESSAGEBOX("You have 2 hanging Notes sessions. Press 'Retry' to try from W: anyway, or press 'Cancel' and call 199 for assistance!!!", "Notes already running!" ,37,15)
IF $Valg1 = -1 SHELL "F:\Admin\CmdFiles\FraW.cmd" ENDIF
IF $Valg1 = 2 Goto Ring199 ENDIF
IF $Valg1 = 4 SHELL "F:\Admin\CmdFiles\FraW.cmd" ENDIF
Goto end
ENDIF
SHELL "F:\Admin\CmdFiles\FraW.cmd"
GOTO END
ENDIF
SHELL "F:\Admin\CmdFiles\FraH.cmd"
Goto END

ENDIF

I spesifically want to delete only the 'H:\NOTES\DATA\~notes.lck' file in this script. Why does the DEL command delete more files? Bug or am I totally insane and inept...