How to delete a file?

    Jan 21 2006 | 3:26 am
    Does anyone know how one can delete a file using Max? My application creates temp files and it would be nice if I could delete them.
    I need this functionality for both Windows and Mac.
    Syndey B.

    • Jan 21 2006 | 4:33 am
      you can us an mxj and the JAVA File class which has a method delete().
    • Jan 21 2006 | 9:19 am
      on osx, you can use the shell object and the rm unix command. on windows, maybe f.e.'s winhack objects can help you out, though i have no experience with winmax.
    • Jan 21 2006 | 10:22 am
      Yep. WinHack contains DOSHack class that does this very quickly.
    • Jan 22 2006 | 1:00 am
      It turns out that Bill Orcutt, the creator of the “shell” object also made a “rm” object (remove) with versions for OS X as well as Windows.
      A list of Bill’s objects can be found here: quested=shell&operateur=AND&id_plateforme=0
      And they can be downloaded from here:
      Note: is not up-to-date. Many of the object also have a Windows version.
      Syndey B.
    • Jan 22 2006 | 6:43 pm