Share via

Stranded folder/broken link

Anonymous
2018-07-08T14:15:05+00:00

There is a directory folder "stranded" on my desktop (Windows 10).  I ctrl-c exited a script that was creating the directory and now it seems to be a link to nothing.  It appears as a folder on the desktop.  On the desktop (in Explorer), deleting the item produces the dialog box "Item not found"  The icon can be moved, but not placed in the trash.  However, it can't be moved to another folder.  Refreshing the desktop doesn't help.

In a (administrator) CMD window, it appears in response to a DIR command, but all the other commands one can think of (ATTRIB, RMDIR, DEL) just come back either saying the name is incorrect or doing nothing in the case of del).  There seems to be a broken symbolic link somewhere.

Any suggestions for deleting it would be greatly appreciated!

Windows for home | Windows 10 | Files, folders, and storage

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

7 answers

Sort by: Most helpful
  1. Anonymous
    2018-07-09T12:35:05+00:00

    Since the issue involves creating and executing scripts, I recommend that you post this query on the Microsoft Developer Network forums, which is more geared towards advanced scripting and software development discussions for Windows. 

    Regards.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2018-07-08T18:28:59+00:00

    Hi Ken,

    This could be a symbolic link set by the script that you mentioned. The steps required in deleting the symbolic links depends on the type of symbolic function used to create it. You might need to check the actual script or contact the provider of the script on what function was used.

    Additionally, you can check out the following documentations regarding symbolic links:

    Let me know how it goes.

    Hi Ferdz, These are helpful links, but I haven't been able to use them to solve the problem.  I did download and use junction (junction64 in my case) which indicates that there are no junction points in the desktop directory where the stranded icon resides.

    The script is mine.  It has a MKDIR command to create a directory to contain log files it subsequently writes.  I started the script, realized I would like to do something else, and cntl-c escaped out of it.   Strangely enough, the script made the directory's name with a space at the end of the name (which is not in the script, nor has it done that before).  I looked around and found the syntax >rmdir "\?\c:\users<username>\desktop<directoryname>".  This worked, but I have no idea why (which is a little disturbing...).  Thanks so much for your help.  IF ANYONE KNOWS ABOUT THE \?\ SYNTAX, I'D LIKE TO KNOW MORE.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2018-07-08T17:35:11+00:00

    Hi Ken822,

    If it is a phantom file, try running check disc on your drive . . .

    Open Windows File Explorer, right click your C Drive and choose Properties

    Click on the Tools Tab and click Check

    Windows will refuse to check your system drive and ask you if you want to schedule check disc on startup, choose Yes, then restart your PC . ..

    Hi Dave, I tried running chkdsk (with the /r /f switches).  It finished successfully, but did not solve the problem.

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2018-07-08T15:19:19+00:00

    Hi Ken,

    This could be a symbolic link set by the script that you mentioned. The steps required in deleting the symbolic links depends on the type of symbolic function used to create it. You might need to check the actual script or contact the provider of the script on what function was used.

    Additionally, you can check out the following documentations regarding symbolic links:

    Let me know how it goes.

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2018-07-08T15:06:52+00:00

    Hi Ken822,

    If it is a phantom file, try running check disc on your drive . . .

    Open Windows File Explorer, right click your C Drive and choose Properties

    Click on the Tools Tab and click Check

    Windows will refuse to check your system drive and ask you if you want to schedule check disc on startup, choose Yes, then restart your PC . ..

    Was this answer helpful?

    0 comments No comments