02-28-2026, 01:42 AM
(02-28-2026, 01:34 AM)ahenry3068 Wrote:after the if FileExists I would add(02-28-2026, 01:16 AM)NakedApe Wrote: Sorry, ahenry that didn't do it either.
SHELL "trash myfile.txt" works for me when the file is in the current working directory - QB folder here.
Well hell. Then do that ! It's certainly a lot simpler than Applescript.
I would guess it should work with a full pathname too. (adding Quotes around it if it has spaces in it !)
if Instr(File$, chr$(32)) > 0 then File$ = chr$(34) + File$ + Chr$(34)
Space's in file names need to be quoted on the command line !

