Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
kill "filename.ext" = shift-delete
#11
For those Linux in particular Ubuntu flavors the simple one is to use.
Code: (Select All)
file$ = "TrashMe.txt"
IF _FILEEXISTS(file$) THEN
  SHELL _HIDE "gio trash " + file$
END IF
I've tested it on my Ubuntu machine and it preserves it origin, so it can be restored.
Reply
#12
https://qb64phoenix.com/forum/showthread.php?tid=4514  <-- Recycle File, in all its simplicity.

Thanks to @justsomeguy for the Linux equivalent of the windows powershell command for this.  I know squat about linux and am simply trusting his version to work as advertised for us.  Wink
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Shift key not recognized when focus is changed to QB64 program dano 17 2,973 09-18-2024, 03:15 AM
Last Post: TerryRitchie

Forum Jump:


Users browsing this thread: 1 Guest(s)