I'm facing the following problem:    that is Get-ChildItem shows the directory but Remove-Item says that it does not exist !!  I yet try chkdsk, file explorer, trying to rename it,... but I just can't remove that directory  please help.    Gci . -dir|%{Remove-Item -LiteralPath "$($_.FullName)"}   gives:  Remove-Item : Cannot find path 'D:\data\inpibug\ustocks ' because it does not exist. At line:1 char:14 + Gci . -dir|%{Remove-Item -LiteralPath "$($_.FullName)"} +              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo          : ObjectNotFound: (D:\data\inpibug\ustocks :String) [Remove-Item], ItemNotFoundException + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand
4441
I have created a folder via , but I made a mistake since I forgot to clear spaces. Now I cannot delete this folder. I have found a similar issue here -  (Quoted below), but I don't know how to rename a folder with .  I had the same problem, in Windows 7 x64, and none of the command-line solutions worked here. What fixed it for me:  Rename the folder using 7-Zip Delete, either using 7-Zip or  (both work).  Note that deleting the folder in 7-Zip before renaming it was impossible.  I also tried the command line, but it does not work. My folder is named &quot; 1 &quot;. I downloaded 7-Zip, and Google does not provide the help I need.
64958
I've got a rather large number of files on my Windows drive that have a colon in their name. (These came from unpacking some Unix archives.)   When I try to delete them, Windows (XP) complains that the file does not exist, and refuses to delete it. This happens when trying to delete or rename it from explorer or the command line. Still, chkdsk does not complain about those files nor fix the problem.   Any ideas on how to get rid of them?
23267
I have a Windows XP Professional SP 3. In my C drive, I have a lot of folders which I do not know why they exist. Sample these names -    1da9de11ed14f5da3b6ace4e25f5 a0332ef3abcaf03e49   What are they? Why are they created? Can I delete them?
51192
Is there a way to remove the full file path from the title in Notepad++?  Let's say I only wanted the file name to be displayed there. How can this be done?
122773
Files disappeared from my computer. On running a system search, they were found in C:\found.001\disk0001.chk  I want to go in there and have a look, if there are other files there too, but it gives me an access denied message. I ran chkdsk but it said no problems.   Ideally I would want to run a recovery utility (not the ones for deleted files) that would restore them all to the respective locations. Though I am lucky, I still have them at this weird place.   I am on windows 7.
26226
I need a robust and simple way to remove illegal path and file characters from a simple string. I've used the below code but it doesn't seem to do anything, what am I missing?  using System; using System.IO;  namespace ConsoleApplication1 {     class Program     {         static void Main(string[] args)         {             string illegal = "\"M&lt;&gt;\"\\a/ry/ h**ad:&gt;&gt; a\\/:*?\"&lt;&gt;| li*tt|le|| la\"mb.?";              illegal = illegal.Trim(Path.GetInvalidFileNameChars());             illegal = illegal.Trim(Path.GetInvalidPathChars());              Console.WriteLine(illegal);             Console.ReadLine();         }     } }
84321
I have been trying to eject the cd drive with the use of the cmd. However, I am stumped. Searching on the internet, I only found this answer:  eject D:    and a similiar answer  eject D: /I   Both of them do not work.   EDIT Now people have found this answer on superuser,   Set oWMP = CreateObject("WMPlayer.OCX.7") Set colCDROMs = oWMP.cdromCollection colCDROMs.Item(0).Eject   However, I get an error:  colCDROMS.Item is not recognized as an internal or external command, operable program or batch file.
21080
I got a bunch of files with the filename messed up. All the file names have the same beginning which appear to be windows file directories. The problem is there are 700+ files and I really don't want go through and manually rename all of them. These are examples of the file names (Note: None of these have file directories):  G:some\really\long\file\path\then\the\name1.jpg G:some\really\long\file\path\then\the\name2.png G:some\really\long\file\path\then\the\filename.txt G:some\really\long\file\path\then\the\file_name.mov ...   The important take away is that each file has G:some\really\long\file\path\then\the\ before the file name that I would like.   So I would want the above files to look like:  name1.jpg name2.png filename.txt file_name.mov   I've tried the rename command and was not successful. I am still new with Linux and really am not sure on how to go about it or really what to google. Any help would be appreciated.
68201
A folder was created in my home folder (not by anyone), and I cannot see the folder contents. She has root privileges, but when the nautilus root access the folder is empty. When I try to remove it, it will appear to remove more than 1 million files from my computer, and I do not know what these files are.  How i can see these files? the name of folder created is "4F8ZBREShQ". I'm scared about it...
65406
The  is minimal and clean on a fresh installation of Windows. Install a bunch of applications and soon the context menu is loaded with all kinds of opening options from various applications.  How do I remove items from the right click (context) menu?  I find that there are different types of right click menu items:   Global items that appear in all context menus. Items that appear only on folders. Items that appear only on files. Items that appear only on special folders (Ex: Right clicking a folder of MP3s shows up a context menu with items like Play with Windows Media Player.) Items that appear only on certain file types (Ex: Right clicking a MP3 file shows up a context menu with items from Windows Media Player/Foobar2000/VLC/your-favorite-media-player begging to open this file.)   I want to be able to delete all these kinds items from the right click (context) menu.
10476
I have a song that Windows can't play because there is a question mark in the name of the file.  "Where Have All the Cowboys Gone?.ogg" // as an example   So I try to rename it and Windows complains whether I try it in Explorer or from command prompt.  Error I get when trying to copy, rename, or move is:     The Filename, directory name, or volume label syntax is incorrect   Is there a Windows way to force a rename in this case?   Update  I'll keep an eye on this question, but after 13 answers and many attempts (aside form 3rd party solutions) it seems that Windows can't do this (or at least my windows can't, no short names). So I'm accepting the answer which was my original solution anyway of using Linux. It would be nice to see Windows handle this somehow, so don't stop just because I've accepted this answer, the question still stands!
80773
I have copied some data from my Linux machine to my external hard disk. When I want to read some files on my Windows machine, I can't open it. I get the below error  The specified path does not exist   On the other hand I can't rename or copy the same file, with error  The file name you specified is not valid or too long   I have tried to use rename function in command prompt (with and without quotation marks):  rename "Long Name of The File.pdf" "short.pdf"   but I get this error (I don't know why?):  The syntax of the command is incorrect   Can you please help me?
17113
A friend sent a long a file (a .rar) he wanted me to check out for him before he installed it.  I downloaded it and unrared it with no problems, but it was full of .exe's instead of the intended contents (fonts) so I advised him to delete it immediately and not use.  I then proceeded to do the same, but the folder simply will not delete. Oddly the files went fine, and I never ran anything, but this is what I'm seeing:   Could not find this item  This is no longer located in C:\Users\This_User\Desktop. verify the item's location and try again.   I've tried the following things with no help:   Using "Unlocker" to Unlock and delete Using move on reboot and rebooting Using PendMoves (from sysinternals) and rebooting Elevating a cmd line, doing a dir /x to get the short name of the folder, and then del 'shortna~1' Moving the folder to a new folder and then trying to delete the parent folder   I'm on Windows 7 RTM, very fresh install. Any thoughts?  Update: Just to confirm, I've run Hijack this and half a dozen other malware detectors, and everything came back clean (no extra processes, no other obvious badness). Rebooting in safe mode didn't help either.
104658
Some time ago I had a user called "xy" on my system. I have deleted the user but in the /Users directory there are folders called "xy" with a Desktop, Library etc. in it.   Why are they not deleted and can I delete them manually?
99331
When I try to delete file in my PC it gives the error     Could not find this item   This is no longer located in C:\Users\1600\Downloads. Verify the item's located and try again   File shows 0KB size.
83242
If I do a command like (on windows cmd.exe):  where dir   or  where cd   I get the following message:  INFO: Could not find files for the given pattern(s).   This tends to mean to me that cd and dir are not actual programs, but are built in to cmd.exe.  Now the real question is:   Is there ant way to replace cd and dir with other programs?  If you wanted to replace say more, you could just put another program by that name in the system PATH in front of where more is.  But you cannot do that with cd and dir.  Am I just stuck with them?
13306
When I try to move, rename, or delete a file named ␀in Finder, I get this error message:     The operation can't be completed, because an unexpected error occured (error code -50).   With mv, rm or find -delete in Terminal   rm: /Library/␀: Invalid argument  mv: rename /Library/␀ to /tmp/␀: Invalid argument  find: -delete: unlink(/Library/␀): Invalid argument   Can I move or delete this file in Mac OS X or do I have to use another operating system?  I even tried creating a file with this name in /tmp and it has not gone away since 8 reboots.