Microsoft KB Archive/104073: Difference between revisions

From BetaArchive Wiki
(stage2)
 
m (Text replacement - """ to """)
 
(One intermediate revision by the same user not shown)
Line 33: Line 33:
<li>Change to the Root directory of drive C.</li>
<li>Change to the Root directory of drive C.</li>
<li><p>Run the following commands:</p>
<li><p>Run the following commands:</p>
<blockquote>del &quot;c:\test.txt&quot;<br />
<blockquote>del "c:\test.txt"<br />
<br />
<br />
ren &quot;c:\test.txt&quot; &quot;c:\testx.txt&quot;</blockquote></li></ol>
ren "c:\test.txt" "c:\testx.txt"</blockquote></li></ol>


The following error messages appear:
The following error messages appear:

Latest revision as of 09:32, 20 July 2020

Using Quotes with Filenames Causes Strange Errors

Q104073



The information in this article applies to:


  • Microsoft Windows NT Server version 3.1
  • Microsoft Windows NT Workstation version 3.1
  • Microsoft Windows NT Advanced Server, version 3.1





SYMPTOMS

When you put quotes around a filenames in Command Prompt, the command does not complete and error messages appear.

Steps to Reproduce Problem

  1. Use any text editor, such as Notepad, to create a file called TEST.TXT in C:\, containing some text.
  2. Start Command Prompt (CMD.EXE) from the Main group in Program Manager.
  3. Change to the Root directory of drive C.
  4. Run the following commands:

    del "c:\test.txt"


    ren "c:\test.txt" "c:\testx.txt"

The following error messages appear:

  • Could Not Find c:\est.txt

    (Note the missing t.)

  • The syntax of the command is incorrect

NOTE: These incorrect error messages appear in any file system: FAT, HPFS, or NTFS.



RESOLUTION

Do not use quotes for the RENAME or DELETE commands, or do not use the full path when renaming or deleting files.



STATUS

Microsoft has confirmed this to be a problem in Windows NT version 3.1 and Windows NT Advanced Server version 3.1. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

Additional query words: prodnt

Keywords : kbtool
Issue type :
Technology : kbWinNTsearch kbWinNTWsearch kbWinNTW310 kbWinNTSsearch kbWinNTS310 kbWinNTAdvSerSearch kbWinNTAdvServ310 kbWinNTS310xsearch kbWinNT310xSearch kbWinNTW310Search


Last Reviewed: October 27, 2000
© 2001 Microsoft Corporation. All rights reserved. Terms of Use.