>>One way around this if using QPAC2 is to create a directory called say >>TRASH and instead of deleting files, use the MOVE command to shift >>them into the TRASH directory instead. When you run short of space, or
>Sad no one wrote such a utility or keyword : seems quite easy ! There are some problems with this approach: 1. There is no UNDELETE info saved i.e. where to put it back to when you undelete, you have to locate and restore manually! 2. Filename lengths. Delete WIN1_12345678901234567890123456789012_txt (OK, silly example) would fail as you'd be attempting to move a 36 character filename to WIN1_TRASH_ or whatever - QL filename length limit strikes again. You'd have to truncate long file names. One way around it is to use a very short name for the directory, something you won't normally use or delete accidentally, but which stands out in a list, something like WIN1_@ for example. 3. Deleting whole directories does not create the directory in the trashcan. I'm sure we could think of others. Basically, a small set of BASIC extensions could be written along the lines of: SET_TRASH 'win1_@_' TRASH 'filename' - move UNTRASH 'filename' TO 'restored_filename' PURGE_TRASH - deletes everything in the trashcan, possibly with qualifiers such as PURGE_TRASH date_value to delete everything older than a given date, or PURGE_TRASH '_bas' to remove all BASIC programs. The action of TRASH would be to COPY and DELETE if the filename being deleted and the trashcan were not on the same drive. If one the same drive it could be RENAME except for microdrives which don't support rename. I would, however, foresee that each medium has its own 'trashcan' Anyone fancy taking on this challenge? As I've proposed it, it's fairly basic of course, so you may prefer to build on this. Don't forget we already have one trashcan, that programmed on Qubide 2 ROMs. -- Dilwyn Jones [EMAIL PROTECTED] http://www.soft.net.uk/dj/index.html
