Search:

Type: Posts; User: The_Mexican

Search: Search took 0.11 seconds.

  1. Replies
    15
    Views
    3,076

    Re: renaming/deleting file

    Well I guess I'll just do it the manual way copeg suggested. Thanks anyway guys!

    EDIT: Ah yes! I partly figured it out! :D Ok, so what needed to happen is that I had to delete/rename the files...
  2. Replies
    15
    Views
    3,076

    Re: renaming/deleting file

    I have Java SE 6 Update 21. I guess I'll update it to 23 but I doubt that's the problem...
  3. Replies
    15
    Views
    3,076

    Re: renaming/deleting file

    1. Windows Vista. I seriously doubt I would need elevated privileges in order to delete these text files. I've tried deleting them manually and it works.

    2. Yes, I checked using the way you...
  4. Replies
    15
    Views
    3,076

    Re: renaming/deleting file

    I tried what you suggested but it still came up as false and nothing happened :( It guess the only way this will work is doing what copeg suggested?
  5. Replies
    15
    Views
    3,076

    Re: renaming/deleting file

    dir is basically where the program is running from. I can't remove the static because I was taking these lines somewhat out of context, there is a reason I need the static there.
  6. Replies
    15
    Views
    3,076

    Re: renaming/deleting file

    Ok, so I checked the return value and saw that they both came up as false. But now is there a way I could make it work? Does renameTo() just not work if there's always a file by that name?
  7. Replies
    15
    Views
    3,076

    renaming/deleting file

    Hi again, I now have a problem where I rename a file, and delete another one, and neither one of the actions are actually happening.

    It looks like this:

    static File rfile = new File(dir +...
Results 1 to 7 of 7