none
DirectoryNotFoundException. RRS feed

  • 问题

  • Hi,my friends,There is a folder in my computer,and is empty,but when I delete it,a 'DirectoryNotFoundException' is handled.

    once,the same issue occured but I sove it by useing 'C#'.But this time it failed.So what can I do then? Thanks.


    2013年11月3日 8:42

答案

  • Hi JcsonSharpenden,

    Try this method:

    1. Create a bat file containing this code:

    DEL /F /A /Q \\?\%1
    RD /S /Q \\?\%1

    2. Drag the file on this bat file.

    If you want to use it in C#,  please create a Process to start this bat file, and set the argument as the directory full path.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    2013年11月4日 12:23
    版主

全部回复

  • Can u show us the path?

    For Account Validation, please follow "Verify Account+Number" at http://social.msdn.microsoft.com/Forums/en-us/home?forum=reportabug

    For ASP.NET Question, please ask at http://forums.asp.net

    For other questions, you can find a specific forum and then ask at http://stackexchange.com/sites

    Click and Donate at http://www.freerice.com

    2013年11月4日 2:23
    版主
  • Hi JcsonSharpenden,

    Try this method:

    1. Create a bat file containing this code:

    DEL /F /A /Q \\?\%1
    RD /S /Q \\?\%1

    2. Drag the file on this bat file.

    If you want to use it in C#,  please create a Process to start this bat file, and set the argument as the directory full path.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    2013年11月4日 12:23
    版主