Escolar Documentos
Profissional Documentos
Cultura Documentos
XCOPY source [destination] [/A | /M] [/D[:date]] [/P] [/S [/E]] [/V] [/W] [/C] [/I] [/Q] [/F]
[/L] [/H] [/R] [/T] [/U]
[/K] [/N] [/O] [/X] [/Y] [/-Y] [/Z] [/EXCLUDE:file1[+file2][+file3]...]
XCOPY source [destination] [/A | /M] [/D[:date]] [/P] [/S [/E]] [/W] [/C] [/I] [/Q] [/F] [/L]
[/H] [/R] [/T] [/U] [/K] [/N]
source
Specifies the file(s) to copy.
EXAMPLES
xcopy h:\*.* /a /e /k
The above command would copy everything located on the H drive to the drive you are
currently on
Microsoft Windows 95, 98, ME syntax
volume Specifies the drive letter (followed by a colon), mount point, or volume name.
/FS:filesystem Specifies the type of the file system (FAT, FAT32, or NTFS).
/V:label Specifies the volume label.
/Q Performs a quick format.
/C Files created on the new volume will be compressed by default.
/X Forces the volume to dismount first if necessary. All opened handles to the
volume would no longer be valid.
/A:size Overrides the default allocation unit size. Default settings are strongly
recommended for general use.
NTFS supports 512, 1024, 2048, 4096, 8192, 16K, 32K, 64K.
FAT supports 512, 1024, 2048, 4096, 8192, 16K, 32K, 64K, (128K, 256K for
sector size > 512 bytes).
FAT32 supports 512, 1024, 2048, 4096, 8192, 16K, 32K, 64K, (128K, 256K for
sector size > 512 bytes).
Note that the FAT and FAT32 files systems impose the below restrictions on
the number of clusters on a volume:
FAT: Number of clusters <= 65526 FAT32: 65526 < Number of clusters <
268435446
NTFS compression is not supported for allocation unit sizes above 4096.
/F:size Specifies the size of the floppy disk to format (160,
180, 320, 360, 640, 720, 1.2, 1.23, 1.44, 2.88, or 20.8).
/T:tracks Specifies the number of tracks per disk side.
/N:sectors Specifies the number of sectors per track.
/1 Formats a single side of a floppy disk.
/4 Formats a 5.25-inch 360K floppy disk in a high-density drive.
/8 Formats eight sectors per track.
EXAMPLES
When using the format command, remember all information on the drive you wish to format
will be completely erased.
format a: - Would erase all the contents off a disk. Commonly used on a diskette that has
not been formatted or on a diskette you wish to erase.
format a: /q - Quickly erases all the contents of a floppy diskette. Commonly used to quickly
erase all information on the diskette.
format c: - This would erase all the contents of your C: hard disk drive. In other words,
unless you wish to erase all your computer's information, this command should not be done
unless you're planning to start over
SYNTAX
LOCK [drive:]
UNLOCK [drive:]
EXAMPLES
When typing the above command you will receive the below prompt.
It is important to know that if errors occur indicating that a process, such as fdisk or a setup
of a new program or operating system, cannot continue because the hard disk drive is
locked, that using the unlock command will resolve this issue.
SYNTAX
COPY [/A | /B] source [/A | /B] [+ source [/A | /B] [+ ...]] [destination] [/A | /B]] [/V] [/Y |
/-Y]
The switch /Y may be preset in the COPYCMD environment variable. This may be overridden
with /-Y on the command line.
To append files, specify a single file for destination, but multiple files for source (using
wildcards or file1+file2+file3 format).
EXAMPLES
The below example would copy all files in the current directory to the floppy disk in drive a:
copy *.* a:
Copy the autoexec.bat, usually found at root, and copy it into the windows directory; the
autoexec.bat can be substituted for any file(s).
Copy the win.ini file, which is already in your windows directory, to the windows directory,
without prompting if you wanted to overwrite the file or not.
Copy the contents in myfile2.txt and combine it with the contents in myfile1.txt.
copy myfile1.txt+myfile2.txt
Finally, a user can create a file using the copy command. In the below example we create
the file called "test.txt".
Once the above command has been typed in, a user could type in whatever he or she wishes.
When you have completed creating the file, you can save and exit the file by pressing
CTRL+Z, which would create ^Z, and then press enter. An easier way to view and edit files
in MS-DOS would be to use the edit command.
SYNTAX
[drive:][path]filename Specifies the file(s) to delete. Specify multiple files by using wildcards.
/P Prompts for confirmation before deleting each file.
names Specifies a list of one or more files or directories. Wildcards may be used to delete
multiple files. If a directory is specified, all files within the directory will be
deleted.
/P Prompts for confirmation before deleting each file.
/F Force deleting of read-only files.
/S Delete specified files from all subdirectories.
/Q Quiet mode, do not ask if ok to delete on global wildcard
/A Selects files to delete based on attributes
attributes R Read-only files S System files
H Hidden files A Files ready for archiving
- Prefix meaning not
The display semantics of the /S switch are reversed in that it shows you only the files that
are deleted, not the ones it could not find.
del [drive:][path]filename
delete [drive:][path]filename
Delete only operates within the system directories of the current Windows installation,
removable media, the root directory of any hard disk partition, or the local installation
sources.
EXAMPLES
Notice: Users who are running Microsoft Windows 95 and are used to deleted items going to
the recycle bin need to keep in mind that deleting files from MS-DOS does not send files to
the recycle bin.
del test.tmp = Deletes the test.tmp in the directory that you currently are in, if the file
exists.
del c:\windows\test.tmp = Delete the c:\windows\test.tmp in the windows directory if it
exists.
del c:\windows\temp\*.* = (* is for wild character(s)) *.* indicates that you would like to
delete all files in the c:\windows\temp directory.
del c:\windows\temp\?est.tmp = (? is a single wild character for one letter) This command
would delete any file ending with est.tmp such as pest.tmp or zest.tmp...
Deletes a directory and all the subdirectories and files in it.
To delete one or more files and directories: DELTREE [/Y] [drive:]path [[drive:]path[...]]
Note: Use DELTREE cautiously. Every file and subdirectory within the specified directory will
be deleted. Once deleted, you cannot recover the information.
EXAMPLES
Below is a listing of available switches in MS-DOS scandisk 6.2 and above. It is important to
note that these commands will not work in Windows 95 and above.
/checkonly - Checks drive for errors but will not make repairs.
/autofix - Fixes errors without asking you first. Saves lost clusters by default as files in the
drive's root directory. Cannot be used with /checkonly or /custom.
/custom - Runs Scandisk using the settings in [custom] section of the scandisk.ini file. Cannot
be used with /autofix or /checkonly.
/surface - Automatically checks surface after other areas are tested without prompting you
first. When used with /custom, will override any /surface setting in [Custom] section of
scandisk.ini.
/fragment - Checks individual files for fragmentation. Must specify a drive, path and file
name; cannot use any other switches.
/nosave - Deletes all lost clusters found by Scandisk. Can be used with /autofix.
/nosummary - Prevents display of full-screen summary after each drive. Use with /autofix to
prevent prompts for undo diskette.