Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

DEL /Q not fixed

May
12,846
164
The file name is lower case Greek "pi".

Code:
v:\> del /q %@char[960]
V:\π : Are you sure (Y/N)? N

Rex, aren't you going to fix this?
 
Not reproducible here.
Do you have a file with that name. Get one with "ECHO foo > %@CHAR[960]".

Charles Dye reproduced it right away and commented:

Code:
You get that odd prompt anytime you specify a filename consisting entirely of characters >= 256

I checked a little and that comment seems to be true.
 
Code:
v:\> del /q %@char[960]
V:\π : Are you sure (Y/N)? N

/Q doesn't seem to have anything to do with it; you get the same prompt without it. DEL is acting as if /P had been specified, though it wasn't.
 
/Q doesn't seem to have anything to do with it; you get the same prompt without it. DEL is acting as if /P had been specified, though it wasn't.
Quite right!

Code:
v:\> dir /k /m [EMAIL]%@char[/EMAIL][960]
 3/19/2012  23:06               5  π
v:\> del [EMAIL]%@char[/EMAIL][960]
V:\π : Are you sure (Y/N)? N
     0 files deleted
 
Quite right!

Code:
v:\> dir /k /m [EMAIL]%@char[/EMAIL][960]
3/19/2012  23:06              5  π
v:\> del [EMAIL]%@char[/EMAIL][960]
V:\π : Are you sure (Y/N)? N
    0 files deleted

That's a new one! I didn't put those EMAIL tags there. In fact I typed the CODE tags manually.
 
DEL is acting as if /P had been specified, though it wasn't.

After a closer look, it isn't the /P prompt. It's the delete-all-files-in-a-directory prompt, the one that /Q is supposed to suppress. Only (1) the file named isn't a directory, and (2) /Q doesn't suppress it.
 

Similar threads

Back
Top