Thursday, July 28, 2016

[CN]无效开关 - // [EN] Invalid switch - - /x


How to repeat the error ?
______________________________
<>
windows7 64bit
Dos Command Line Interaction
<>
cmd
   DEL /F D:/filenameTObeDeleted.ext

> 无效开关 - "filenameTObeDeleted.ext"
____________________________________


RESOLUTION:




....
....
SYMPTOMS
When you use switches with the xcopy or xcopy32 commands in MS-DOS mode after having chosen Command Prompt Only at the boot menu, or at a command prompt while using the Windows Millennium Edition (Me) Emergency Boot Disk (EBD), you may receive the following error message
Invalid switch - - /x
where x is the switch used, such as /H.
CAUSE
This behavior occurs when you use an unsupported switch with the xcopy or xcopy32 command. In the scenarios that are mentioned in the "Symptoms" section in this article, these commands support only a limited subset of switches.
RESOLUTION
To resolve this behavior, use only the supported switches when Windows starts. The supported switches are listed in the "More Information" section in this article.
MORE INFORMATION

Supported Switches

SwitchDefinition
/cContinues copying even if errors occur.
/iIf a destination does not exist while copying more than one file, this switch assumes that the destination must be a directory.
/qDoes not display file names while copying.
/fDisplays full source and destination file names while copying.
/lDisplays files that would be copied.
/hCopies all files including hidden and system files. 
Note: This switch is only supported at the command prompt in Windows Me.
/rOverwrites read-only files.
/tCreates directory structure, but does not copy files. Does not include empty directories or subdirectories.
/uUpdates the files that already exist in destination.
/kCopies attributes. Normal xcopy will reset read-only attributes.
/yOverwrites existing files without prompting.
/-yPrompts you before overwriting existing files.
/nCopies by using the generated short names.


For a complete listing of switches that are available for xcopy and xcopy32, refer to the following article:
289483 Switches That You Can Use with Xcopy and Xcopy32 Commands

>Done :-)
>End :-)
___________

No comments:

Post a Comment