User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 15

Thread: DELETING FILES!

  1. #1
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jul 2006
    Location
    Denmark
    Posts
    1,812
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    DELETING FILES!

    The File object goes "I hate you!" me, aka, it won't delete files for some odd reason. Even though I tell it to, it just doesn't do it ;<

    So I'm looking for a way to delete files, other than using the File Object. Anyone?

  2. #2
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,825
    Mentioned
    8 Post(s)
    Tagged
    2 Thread(s)

    Re: DELETING FILES!

    First lets watch the language.

    Without an example of what your doing its hard to see your error.

    Make sure its a valid path and check the error code return to see what it says so we can help you figure out what your doing wrong.

  3. #3
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jul 2006
    Location
    Denmark
    Posts
    1,812
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: DELETING FILES!

    Hey cool, I didn't know it could return errors
    Lemme see

    Ehh
    Error Code 2?

  4. #4
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jul 2006
    Location
    Denmark
    Posts
    1,812
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: DELETING FILES!

    Oh just ignore this post, but still read the one above

  5. #5
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,825
    Mentioned
    8 Post(s)
    Tagged
    2 Thread(s)

    Re: DELETING FILES!

    Try clearing the errors between delete attemps.
    Once you have an error it won't do anything till you clear it.

    I believe the error code list is in the help for MMF.

  6. #6
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jul 2006
    Location
    Denmark
    Posts
    1,812
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: DELETING FILES!

    Yeah it was error code 2. The 17 was my fault.

    Lemme look it up

  7. #7
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jul 2006
    Location
    Denmark
    Posts
    1,812
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: DELETING FILES!

    And suddenly it's working!
    This object is like, wierd.

  8. #8
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,825
    Mentioned
    8 Post(s)
    Tagged
    2 Thread(s)

    Re: DELETING FILES!

    Error 2 = No such file or directory
    Error 13 = Permission denied
    Error 17 = File exists
    Error 18 = An attempt was made to move a file to a different device (using the rename function)
    Error 22 = Invalid argument
    Error 24 = Too many open files
    Error 28 = No space left on device (e.g. disk full)
    Error 41 = Given path is not a directory, or directory is not empty, or directory is either current working directory or root directory

    So error 2 would be the path is incorrect

  9. #9
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jul 2006
    Location
    Denmark
    Posts
    1,812
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: DELETING FILES!

    Quote Originally Posted by Jeff
    Error 2 = No such file or directory
    Error 13 = Permission denied
    Error 17 = File exists
    Error 18 = An attempt was made to move a file to a different device (using the rename function)
    Error 22 = Invalid argument
    Error 24 = Too many open files
    Error 28 = No space left on device (e.g. disk full)
    Error 41 = Given path is not a directory, or directory is not empty, or directory is either current working directory or root directory

    So error 2 would be the path is incorrect
    Yeah I found it myself
    Although
    I think it's running the delete action twice (even though I only tell it to do it once) because even though it deletes the file it still returns a "file not found".

  10. #10
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module
    Nifflas's Avatar
    Join Date
    Jul 2006
    Posts
    2,613
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: DELETING FILES!

    To me, the file object has never done anything unexpected, not even once. It has never performed the delete action twice when it shouldn't. Are you sure this is not a problem with your code?

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Deleting files
    By BullDog in forum Install Creator and Patch Maker
    Replies: 3
    Last Post: 17th November 2010, 11:05 PM
  2. Deleting Files Externally.
    By Martin_Bodger in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 13th June 2008, 03:29 PM
  3. Deleting Files
    By Nyyss0nen in forum Multimedia Fusion 2 - Technical Support
    Replies: 18
    Last Post: 27th September 2007, 08:19 AM
  4. Temporary directory - Deleting files
    By Gustav in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 29th November 2006, 09:24 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •