Ah, fantastic. Worked like a charm. I recommend that plugin.
For anyone interested the windows shell32 code is supplied below.
It is a pain though. Testing it it will work in some folders and not in others. It might be being picky about double null termination and so working some of the time and not others, but I think it is more down to security - or at least giving the program administrator access would work in many folders tested, but not all.
For ease I recommend the plug-in above.
`****************** DLL CONSTANT DEFINITIONS *******************
#constant c_Shell32DLL 10 :` Shell32.dll load number
load Dll "Shell32.dll", c_Shell32DLL
`***************************************************************
global g_autodir_full_directory_path$ as string : g_autodir_full_directory_path$ = get dir$()
global g_TESTFile$ as string : g_TESTFile$ = g_autodir_full_directory_path$ + "\TestText.txt"
Type SHFILEOPTSTRUCT_type
hWnd As dword
wFunc As dword
pFrom$ As String
pTo As String
fFlags As integer
fAnyOperationsAborted As dword
hNameMappings As dword
lpszProgressTitle As dword
EndType
Dim fop(0) As SHFILEOPTSTRUCT_type
fop(0).wFunc = 0x0003
fop(0).pFrom$ = g_TESTFile$
fop(0).fFlags = 0x0040
l_DelResult = call dll(c_Shell32DLL, "SHFileOperation", fop(0))