CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 10 of 10
  1. #1
    Join Date
    May 1999
    Posts
    66

    Unable to delete last active directory

    The last acitve directory in my code is not being deleted. The delete function works, however something is interfering and causing a failure. No error is being reported. What things (no DOS boxes running) could be interfering?


  2. #2
    Join Date
    May 1999
    Location
    Sydney, Australia
    Posts
    420

    Re: Unable to delete last active directory

    Is the last directory the current directory?

    Sally


  3. #3
    Join Date
    May 1999
    Posts
    66

    Re: Unable to delete last active directory

    It should not be. I have tried placing _chdir("\\") to ensure that the current directory was nowhere near the directory I was trying to delete. It had no effect on the problem. Any other ideas?


  4. #4
    Join Date
    May 1999
    Location
    Sydney, Australia
    Posts
    420

    Re: Unable to delete last active directory

    1) directory readonly
    2) someone else on the network using the directory at the moment
    3) someother program on your computer isubg the directory at the moment
    4) the directory is shared on a network
    .....

    Sally


  5. #5
    Join Date
    May 1999
    Posts
    66

    Re: Unable to delete last active directory

    Thanks...But it can only be that some other internal function in the software is using the directory...It only is a problem when the project was the last acitve, ie that no other project has been opened or created since activating the first. When deleting projects that were not recently (the last prior to deletion), there is no problem. A strange problem...


  6. #6
    Join Date
    May 1999
    Location
    Sydney, Australia
    Posts
    420

    Re: Unable to delete last active directory

    can you post your code and I'll take a look at it...
    please put it between
    the '[ ccode ]' and '[ /ccode ]' statements
    is it snow 21 past midnight where I am, so I'll not be able to look at it for some hours

    Sally



  7. #7
    Join Date
    May 1999
    Posts
    66

    Re: Unable to delete last active directory

    I would, but since I do not know exactly where the error is occuring, I do not know what code to post. The directorydelete I am using is the NukeDirectory code that is posted in CodeGuru. However I know it works, as I use the code in several instances and am only having problems with one. Thank you for your thoughts though.


Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured