Re: very slow cursor in CMD window w/Text editor?



I think I saw something about using quotes or even a single preceding
quote

You CANNOT use long file names with command.com, quotes or no quotes. At
least with the Chdir (Cd) command.

------
Microsoft(R) Windows DOS
(C)Copyright Microsoft Corp 1990-2001.

C:\>cd C:\Documents and Settings\Wesley P. Vogel\Local Settings\Temp
Too many parameters - and

C:\>cd "C:\Documents and Settings\Wesley P. Vogel\Local Settings\Temp"
Parameter format not correct - "C:\Documents

C:\>cd C:\DOCUME~1\WESLEY~1~VOG\LOCALS~1\Temp

C:\DOCUME~1\WESLEY~1\LOCALS~1\TEMP>
------

Too many parameters
There are too many spaces in the command you are typing. Valid format is
8.3 names. C:\DOCUME~1\WESLEY~1\LOCALS~1\TEMP

Parameter format not correct
You typed one or more parameters that do not have a valid format for this
command. Valid format is 8.3 names.

Cannot Use Spaces in MS-DOS Command Parameters
http://support.microsoft.com/kb/229880

Native MS-DOS Commands and the Space Character
http://support.microsoft.com/kb/166827

Amazingly enough, this command works in command.com:

md "A Directory With a Long Name"

You can use long file names with cmd.exe.

You have to use quotes with some commands with cmd.exe, especially if the
path contains a white space.

Try the following commands in cmd.exe and see what happens...

start "" "C:\Program Files\Internet Explorer\iexplore.exe"

start "C:\Program Files\Internet Explorer\iexplore.exe"

start C:\Program Files\Internet Explorer\iexplore.exe

start iexplore

<quote>
Remarks
Using multiple commands
* You can use multiple commands separated by the command separator && for
string, but you must enclose them in quotation marks (for example,
"command&&command&&command").

Processing quotation marks
If you specify /c or /k, cmd processes the remainder of string and quotation
marks are preserved only if all of the following conditions are met:

* You do not use /s.
* You use exactly one set of quotation marks.
* You do not use any special characters within the quotation marks (for
example: &<>( ) @ ^ |).
* You use one or more white-space characters within the quotation marks.
* The string within quotation marks is the name of an executable file.

If the previous conditions are not met, string is processed by examining the
first character to verify whether or not it is an opening quotation mark. If
the first character is an opening quotation mark, it is stripped along with
the closing quotation mark. Any text following the closing quotation marks
is preserved.

File and directory name completion correctly processes file names that
contain white space or special characters if you place quotation marks
around the matching path.

The following special characters require quotation marks: & < > [ ] { } ^ =
; ! ' + , ` ~ [white space]

If the information that you supply contains spaces, use quotation marks
around the text (for example, "Computer Name").
<quote>
from CMD...
Paste the following line into Start | Run and click OK...

hh ntcmds.chm::/cmd.htm

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In news:OGlRbqxIHHA.4068@xxxxxxxxxxxxxxxxxxxx,
michaeljnc <michaeljnc@xxxxxxxxxxxxx> hunted and pecked:
I think I saw something about using quotes or even a single preceding
quote, but I tried that and it didn't work?
cd 'c:\documents and settings

Another curious thing is that an x.bat file containing EXIT, will exit
from a CMD prompt but not from command.com.

Wesley Vogel wrote:
True, Bob.

But try:
cd C:\Documents and Settings
instead of
cd C:\DOCUME~1
in command.com. ;-)

.



Relevant Pages

  • Re: User dsquery to obtain lanid, name for all users in the domain.
    ... the dsget command chokes on some DN's with unusual ... I did confirm that if any user has the quote character in their common name ... then find the DN's with embedded quotes and escape them with the backslash ...
    (microsoft.public.windows.server.active_directory)
  • Re: Sophisticated(!) copying in DOS
    ... misplaced (first a colon, then a double quote), and then ... you say that this was not the real command anyway. ... The .bmp attempt was to test if the exclude command was working, ... > Windows rather than the traditional DOS-tastic 8 character path name. ...
    (microsoft.public.windowsxp.general)
  • How to turn off compose mode?
    ... quote was behaving strange: If I type one quote, ... quote character by command line processing. ... looks like my terminal is in "compose mode", ...
    (GNOME)
  • Re: dir and del command in CMD.exe perform wildcard match on short filename
    ... Cmd.exe is the Windows Command Processor and was developed for NT. ... You typed one or more parameters that do not have a valid format for this ... Native MS-DOS Commands and the Space Character ... string, but you must enclose them in quotation marks (for example, ...
    (microsoft.public.windowsxp.general)
  • Re: qouting with sed
    ... > is there a way to quote an entire string in sed commands? ... > could not think of any character that may not be used in unix pahts... ... rather than using an external 'sed' command. ...
    (comp.unix.shell)

Loading