command.com /c dir "c:\filename"

P

Paul Blay

Here's a weird (to my mind) one.

From the command prompt
dir "c:\filename"
works
command.com /c dir "c:\filename"
doesn't work (it returns 'Parameter format not correct - "C:\filename"' )

Not that I can see that it has any relevance but I have default codepage
set to Japanese and the file 'filename' exists, with no extension.

What have I missed?
 
T

Thorsten Matzner

Paul Blay said:
Here's a weird (to my mind) one.

From the command prompt
dir "c:\filename"
works
command.com /c dir "c:\filename"
doesn't work (it returns 'Parameter format not correct - "C:\filename"' )

If "command prompt" in your first example means that you klick the
"Command Prompt" item in the Start Menu and then type in the
command-line: "Command Prompt" does not start COMMAND.COM but CMD.EXE.
So you may want to adjust the second command-line and retry.
 

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

Top