1.

Solve : Can't delete this file using PE CMD line?

Answer»

All,

This file: "2014 IPSUS | Ipsus.com - Ipsus.desktop"

will NOT delete from within Win7/ Win7 CMD/ PE CMD. Linux = no joy either. The Win error message: " 'Ipsus.com' is not recognized as an internal or external command, operable program or batch file".

I've never had such a problem.

Any solution would be very much appreciated.

Quote from: AndyCountry on November 08, 2013, 06:58:13 PM

Linux = no joy either. The Win error message: " 'Ipsus.com' is not recognized as an internal or external command, operable program or batch file".

What error message does Linux produce? Did you boot up a LIVE Ubuntu cdrom and try it?

FWIW the Windows error message is not one that is associated with the delete command...

Does this command generate and error too?

del "2014 IPSUS ? Ipsus.com - Ipsus.desktop"Have you tried using a wildcard, e.g.

del "2014 IPSUS*"

?

Quote from: foxidrive on November 09, 2013, 12:17:36 AM
What error message does Linux produce? Did you boot up a LIVE Ubuntu cdrom and try it?

FWIW the Windows error message is not one that is associated with the delete command...

I bet it's the pipe symbol in the FILENAME. The error message is quite clear. Windows thinks he's piping "del 2014 IPSUS" to an internal or external command, operable program or batch file called "Ipsus.com" (which it cannot find) with two parameters "-" and "Ipsus.desktop". *Nixes know about pipes too.

I wonder if any of these would work... using wildcards, using dir /x and trying to delete the 8.3 name, deleting or moving all the other files and subfolders (if any) and removing the folder? Or rm.exe from a Windows Resource Kit or the GNU Core Utils http://gnuwin32.sourceforge.net/packages/coreutils.htm ?

Also, how did it get there?




All your suggestions are worth a shot.

If this were an Apple ][+ FAT then I'd get a sector editor and edit the disk. I'm not sure it's feasible in an NTFS file table.

I THOUGHT that if the filename were quoted then the pipe might not act as a pipe - like if you type echo "abc | def"
so I wonder if the OP quoted the name?

Looking up ipsus.com it's a people management site. I'm also curious how the filename was created.Quote from: foxidrive on November 09, 2013, 01:24:20 AM
I thought that if the filename were quoted then the pipe might not act as a pipe - like if you type echo "abc | def"
so I wonder if the OP quoted the name?

I wondered this too, but I would need a file with a pipe in the name to test it. You certainly can't use the quotes trick to create one.

Quote
Looking up ipsus.com it's a people management site.

"IPSUS - Delivering Business Compliance and IT Expertise"... hmmm...

Quote
I'm also curious how the filename was created.

I think that files with illegal names are sometimes used as a way of locking a folder, so again, hmmm....

Something about this suggests it was done by malware. The only reason to include a forbidden symbol in a file name would be to make impossible for anyone to remove the name.
He seems to have gone away...
Maybe one of your suggestions worked.
For what it is worth, this kind of thing has come up before on other forums.
http://www.novell.com/coolsolutions/tip/17100.html
All,

Thank you for the thoughtful replies! I had a long and busy day, so it's currently late at night. I'm just now checking the thread. I'll try all the great suggestions tomorrow afternoon (Sunday the 10th)!




Thanks for your patience.

Just a note; when I tried to delete it in Win7, the error mssg was: "The file name you specified is not valid or too long..." Likely not valid IMO, since it has a "pipe" in it.


SalmonTrout:

1. Adding the "*" at the end didn't do the trick (2014 IPSUS*)
2. Like you, I also thought that the pipe symbol was a problem. Which leads to #3;
3. Indeed, how did a pipe symbol get entered/accepted by Windows as a valid file name character??? Additionally, the extension ".desktop" is fishy (DesktopX by Stardock - whatever that is).

My (very basic) DOS chops are from '83-'85 using an IBM AT. Your advanced DOS dir/X & rm.exe METHODS would be beyond my scope in the short term., but I have taken notes and will try and learn about them.

Any other ideas? Step by step instructions might be in order if they are technical.

Thanks in advance.
Quote
The following reserved characters:

< (less than)
> (greater than)
: (colon)
" (double quote)
/ (FORWARD slash)
\ (backslash)
| (vertical bar or pipe)
? (question mark)
* (asterisk)



Discussion

No Comment Found