Thursday, December 23, 2010
【 Weak current College 】 DOS command in Visual FoxPro (5)
(6) TREE — displays disk directory structure command
1. function: displays the specified drive all directory path and the directory of all of the file.
2. type: external commands
3. format: TREE [drive:] [/F] [code PRN]
4. instructions for use:
(1) use the/F parameter to display all the directories and directory all the files that omits, only display the directory does not display files in the directory;
(2) choose > PRN parameter, you put the directory and file name in the directory print output.
(VII) DELTREE — delete the entire directory command
1. function: the entire directory and its subdirectories and files deleted.
2. type: external commands
3. format: DELTREE [drive:] page〈 pathname >
4. instructions for use: this command can be a step in the directory and all files and subdirectories and the lower one and delete the subdirectory, and regardless of the file attributes to hidden, system, or read-only, so long as the file is deleted, the DELTREE alike, according to delete. Use caution when!!!
[NextPage]
5. disk operation class command
(A) FORMAT-disk formatting command
1. function: to format the disk, the split tracks and sectors; also check out the entire disk, there are no tracks, with defects on bad road charging tag; setting up directory and file allocation table, so that the disk to receive DOS ready.
2. type: external commands
3. format: FORMAT page〈 letter: > [/S] [4] [/Q]
4. instructions for use:
(1) after the letter of the command is not the default, if you format the hard disk, such as the following tip: WARNING: ALLDATAONNON — REMOVABLEDISK
DRIVEC:WILLBELOST!
ProceedwithFormat(Y/N)?
(Warning: all data in the C disk, you will lose the formatting, are you sure you want to continue?)
(2) if it is on the floppy disk is formatted, the following prompt: InsertmewdiskettefordriveA;
andpressENTERwhenready…
(In A new disc is inserted in the drive, press ENTER when ready).
(3) selection [/S] parameter, the DOS system files IO.SYS, MSDOS.SYS and command.com copied to disk, so the disk can do as a DOS boot disk. If you do not choose the/S parameter, formatted gun spare only reading and writing information, not as a boot disk;
(4) [4] parameter, in high density floppy drive 1.2MB formatted 360KB of low density disc;
(5) selection [/Q] parameter, a quick format, this parameter will not redistribute the disk's magnetic pretend and sector, only disk root directory, file allocation table, and boot sector winding into blank, formatted, faster.
(6) selection [/u] parameter that represents unconditional format, i.e. the destruction of all data on the original disk. Without the/U safe format, first establish an image file to save the original FAT tables and root directory, if necessary, restore the original UNFORRMAT available data.
(Ii) resume format command UNFORMAT
1. function: to format the error data loss recovery disk.
2. type: external commands
3. format: UNFORMAT page〈 letter > [/L] [/u]
[/TEST]
4. instructions for use: used to be "non-destructive" formatted disk recovery. The root directory of the deleted files or subdirectories and disk system sectors (including FAT and root directory, BOOT sectors and a hard disk partition table) damaged, can also be used to rescue UNFORMAT.
(1) choose the/L parameter lists to find the name of the subdirectory, the file name, date and other information, daxiao but don't really do the FORMAT.
(2) choose the/P parameter is displayed to the screen of the report (containing the/L parameter produces information) also sent to the printer. Run-time screen shows: "PrintoutwillbesenttoLPT1"
(3) selection of/TEST parameter only do simulation test (TEST) cannot be written to the action. Using this parameter will be displayed: "Simulationonly"
(4) selects the/U parameter does not use a MIRROR image of the data, directly under the disk status UNFORMAT.
(5) select hard drive/PSRTN; repair partition table.
If the letter with/P,/L, one of the quite/TEST to use the/U parameter, UNFORMAT "assumes" disk not MIRROR image files at this time.
Note: the FORMAT for just UNFORMAT disk, you can fully recover, but the FORMAT has made after other data is written, the UNFORMAT cannot complete to save the data.UNFORMAT is not a panacea, due to the use of FAT and UNFORMAT will rebuild the root directory, so it also has a high risk, improper operation of the loss may be expanded, if only the wrong a few files or subdirectories, you only need to use UNDELETE is enough.
3) CHKDSK check disk-current status command
1. function: displays the disk's status, memory status, and specify the path Specifies the file number is not continuous.
2. type: external commands
3. format: CHKDSK [drive:] [path] [filename] [/F] [/V]
4. instructions for use:
(1) select [file name] argument, displays the file occupies disk;
(2) selected [/F] parameter, to correct the specified disk logical errors found;
(3) selection [/V] argument, displays all the files on the disc and the path.
(4) DISKCOPY — — the whole disk copy command
1. function: copy is identical to the format and content of the floppy disk.
2. type: external commands
3. format: DISKCOPY [letter 1:] [letter 2:]
4. instructions for use:
(1) if the target disk is not formatted, replication automatically selected when the system.
(2) if the target disk on the original file, the copy will be lost.
(3) If a single-drive copy, you are prompted to replace the source and destination in a timely manner, please do pay attention to distinguish between source and destination disks.
(5) LABEL — establish the disk volume label command
r>1. function: to establish, change, delete the disk volume label.
2. type: external commands
3. format: LABEL [drive:] [volume label name]
4. instructions for use:
(1) volume label name in order to establish the volume label name, if the default this parameter, the system prompts you to type the volume label name or ask if you want to delete the original volume label name;
(2) volume label name from 1 to 11 characters.
(6) VOL — displays a disk volume label command
1. function: view the disk volume label.
2. type: internal commands
3. format: VOL [drive:]
4. instructions for use: omit letter to display the current drive volume label.
Labels:
[:]
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment