Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Can't delete file due to invalid file name


18 Jun 2012   #11

Windows 7 Ultimate 64-bit
 
 

Quote   Quote: Originally Posted by karlsnooks View Post
Robin,
Is this file in the Pictures folder?
You have given the name but not the path for the file.

Try following:
go to an elevated command prompt and enter following commands:
CD /D %userprofile%\Pictures
dir schmerafdruk*.*
does you trouble file show up?

Go To an Elevated Command Prompt


Elevated command prompt = Run CMD.EXE as administrator
WIN | type CMD.EXE | do not hit Enter |
CTRL+SHIFT+ENTER keycombo| YES

WIN is the key with the Microsoft flag on top.
Oh sorry. The file is in the root of D: and there is no pictures folder, because there is no Windows installed on that drive since I only use it for storage.

I still get this error: "The filename, directory name, or volume label syntax is incorrect".

Using "dir Schermafdruk*.*" shows me that the file is present in D:.


My System SpecsSystem Spec
.

18 Jun 2012   #12

Windows 8.1 Pro RTM x64
 
 

Hi Robin,

Try this:

At an elevated command prompt, enter cd /d d:\ in order to switch to the D drive. Next, enter dir to verify the filename(s) of the file(s) you wish to delete.

To delete the file, right-click in the command window and click Mark. Now, highlight the appropriate filename and press Ctrl + C to copy the information to the clipboard. At the command prompt, type del /f " and then right-click + Paste to enter the previously saved information (the filename). Finish by entering " (there should be no spaces between the " characters and the filename) and then execute the command. This should delete the file. Check by reissuing the dir command. Note that you may also use erase instead of del, and if you add the switch /p you will get a confirmation prompt. You will need to repeat this for each file that needs deleting. Copying the filename in this manner removes the possibility of errors creeping in when typing the name, as it is very easy to confuse some characters for others (such as O,o,0 and l,1,i,I to name a few). This misinterpretation of the characters in a filename can often give rise to the error you mention (what you type looks correct, but it isn't).
My System SpecsSystem Spec
18 Jun 2012   #13

Windows 7 Ultimate 64-bit
 
 

I've tried everything you guys suggested, but it just wouldn't work.

I did find a different way to get rid of the file, which was not the easiest since I encountered some Linux related problems while booting, but it worked! Using a Xubuntu Live usb I could just right click and delete/open/rename/move the file. I had tried Linux virtual machines before since my mobo is UEFI and therefore does not like anything but Windows, but I had trouble sharing files with the machine.

I will rep the ones that gave me some very interesting information, thanks guys!
My System SpecsSystem Spec
.


13 Aug 2012   #14

Windows 7 Home Premium 64-bit
 
 

Quote   Quote: Originally Posted by RobinSchouten View Post
I did find a different way to get rid of the file, which was not the easiest since I encountered some Linux related problems while booting, but it worked! Using a Xubuntu Live usb I could just right click and delete/open/rename/move the file.
I tried all the DOS and Windows & suggestions here and on another forum and nothing worked. In the end, the only way I could get the file to go away was to open the folder on a Linux virtual machine (which was a bit of trick in itself, mounting the external HD) and delete it.

Thanks, RobinSchouten, for that bit of advice!
My System SpecsSystem Spec
Reply

 Can't delete file due to invalid file name




Thread Tools



Similar help and support threads for2: Can't delete file due to invalid file name
Thread Forum
Windows 7 USB/DVD Download Tool Invalid ISO file Installation & Setup
Solved Unable to delete a file,can't delete it can't shred it, General Discussion
Solved Help file wont delete win 7 says there is no file General Discussion
Invalid File System (Epson P-7000 photo viewer) Hardware & Devices
File too long or invalid error. General Discussion
Solved Invalid BOOT.INI file Installation & Setup
Invalid boot.ini file BSOD Help and Support

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 05:32 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33