Tuesday, December 21, 2010

【 Weak current College 】 DOS command details (2)---Power By 【 China power house network 】




Second .Md

This command is the command to create the directory. In the following format:

Md path

This command creates a path that is specified by the directory. But most are in the current directory, create a subdirectory, for example mdaaa <回车> will be in the current directory, create a subdirectory named aaa. If you wish to create the directory already exists, the command prompts you for the directory already exists.

3 .Cd

The order by command keyword cd and a path with a drive letter. Will the current period in the path specified in the directory set to the current directory. For example: cdwindowssystem carriage return. This command will send the current disc at the root of the Windows system subdirectory is set to the current directory. Everyone should understand the following examples:

Cd

Sets the current disk's root directory set to the current directory.

cd..

Sets the current directory's parent directory is set to the new current directory.

cdaaa\bbb

Sets the current directory in a subdirectory within the aaa bbb subdirectory is set to the new current directory.

cd.. aaa\bbb

Sets the current directory's parent directory in a subdirectory of the aaa bbb subdirectory within the set to the new current directory.

cd.. bbb

Sets the current directory's parent directory in the bbb directory set to the new current directory.
The above example is the path of the directory referred to. If path refers to the generation of directory does not exist, there will be a cd command? the answer is in the cd command will not change the current directory, and displays an error message:

InvalidDirectory

Four .Copy

This command is the file copy command. It has seven formats:

The full name of the target file 1.copy source file name

The full name of the destination path 2.Copy source files

3.Copy source path of the destination path

4.Copy source path of the target file name

5.Copy source file name

6.Copy source path

7.Copy file name 1 + 2 + file the file's full name in full 3 + ... + n file name (the target file name

Without wildcards)

The following descriptions respectively.

The full name of the target file 1.copy source file name

The format of the source file name specified by one or a group of files copied to the target file name is specified by the path, a new file name using the target file name in the specified file name. For example:

(1)copyc:work*.basc:temp*.txt

The order of the c disk work directory all the files with the extension bas copied to the Temp directory of drive c, the extension of each file are turned into a txt.

(2)copy*.*datfile.txt

The command to the current directory and all files are copied to the root directory of the current disc of the dat directory of file.txt file, that is, the current directory, all files are merged into a single file.

(3)copyc:\workzrculi.basa:\myfile.txt

The order of the c disk work directory in the file copy to a zrculi.bas plate, and back up a file named myfile.txt.

The full name of the destination path 2.Copy source files

The format of the source file name is specified by one or a group of files to copy to the destination path, the file name remains unchanged.

(1)copy*.*c:\aaa

The command in the current directory and all files copied to the directory of c drive of the aaa. Keep the file name does not change.

(2)copyworkzrculi.exea:

The command to the current work directory on the plate of the copy to a disk zrculi.exe root directory.

(3)copyc:dataaa10.31xc:dat1

The order of the c disk dat files in the directory to c: aaa10.31x copy of dat1 directory.

(4)copy.. *.*a:

The command to the current directory's parent directory for all files copied to a plate.

3.Copy source path of the destination path

The format of the source path in the specified directory and all files copied to the target path for the specified directory, and keep the file name does not change.

(1)copyc:work..

The command to put the work directory of c drive for all files copied to the root directory, because the work directory of the parent directory is the root directory.

(2)copya:c:dat

The command in the root directory of a disk, all the files copied to c: dat directory.

4.Copy source path of the target file name

The format of the source path of the directory specified by the all files copied to the target file nameSpecify the directory and file name into the target file name is specified by the filename.

(1)copyc:worka:*.bak

The command to put the work directory of c drive for all files copied to the root directory of a disk, and all file name extensions to bak.

(2)copya:defc:datfile.dat

The command to a spare def all files in the directory to be copied to c: dat directory of file.dat file. That is to say to a spare def all files in the directory to be merged into a file.dat file.

(3)copyc:myfiled:datbbb.*

The order of the c disk myfile files inside a directory and all copies to drive d, the dat directory and file name of the whole into a bbb.

5.Copy source file name

The format of the source file name is specified by one or more files are copied to the current directory, the file name remains unchanged.

6.Copy source path

The format of the source path of the directory you specified for all files copied to the current directory, the file name remains unchanged.

7.Copy file name 1 + 2 + file the file's full name in full 3 + ... + n file name to the destination file name (without wildcards)





No comments:

Post a Comment