??? `"` as a WILDCAT (like *.*) ???

M

Mazi

Hi,

Can anyone who runs a Win2k3 Enterprise Server please confirm that `del "` =
`del *.*` = `del *` under CMD.exe? If so, why I get "File Not Found" when I
do `dir "gif` in a directory that had some .gif files. If not, why my
directory becomes empty when I do `del "` (`del /s "` also removes all files
subdirectories of the path)? Is this a bug or documented somewhere?

Thanks.
 
M

Mazi

Hi Jetro,

I did not see any reference to `del "` or any use of `"` (quotation as a
wildcat) from the link you stated below.
 
J

Jetro

Quotation mark is a part of long file name recognition when name length
exceeds 12 symbols or has spaces inside. CMD.EXE can process LFN without
using quotes but anyway the quotes are there.

" (quotation mark) is not a wildcard. Commands 'dir "gif' (q-mark) and 'dir
"*gif' (q-mark-asterisk) differ. OTOH, commands 'del "' and 'del "*' provide
the same result, so be careful.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Batch file for file list 2
Running A Shell Command In VBA 1
DELTREE equivalent 24
deleteing IE history 1
PowerPoint White Border from Powerpoint 2007 0
Batch file path 4
LISTING TITLE ATTRIBUTE OF FILES 1
find and remove duplicate files 8

Top