#include <WinAPI.au3>
$sFile = "\\?\" & @DesktopDir & "\CON.txt"
If Not FileExists($sFile) Then
$hFile = _WinAPI_CreateFile($sFile, 1, $GENERIC_WRITE, $FILE_SHARE_WRITE)
_WinAPI_CloseHandle($hFile)
Else
_WinAPI_DeleteFile($sFile)
EndIf
Func _WinAPI_DeleteFile($sFile)
Local $aRet = DllCall("kernel32.dll", "handle", "DeleteFileW", "wstr", $sFile)
If @error Then
Return SetError(1, 0, 0)
EndIf
Return $aRet[0]
EndFunc