How to navigate in the DOS command prompt如何航行在DOS命令提示
Posted on February 25, 2008 at 7:04 am發布於2008年2月25日在上午07時04分
Earlier today I had to boot a clients computer into Safe Mode and delete a virus via the DOS command prompt because if Windows loaded, the file would become locked and hence undeleteable!今天早些時候,我不得不啟動一個客戶的計算機進入安全模式,並刪除病毒通過DOS命令提示 ,因為如果Windows裝貨,則該文件將成為上鎖,因此undeleteable ! There are several other reasons why you may have to use the command prompt in your life (though rarely), so it’s good to know how to navigate your way around!還有其他幾個原因,你可能不得不使用命令提示符,在你的生活(儘管很少) ,所以它的好處,知道如何瀏覽你的周圍!
If you’ve been wanting to learn how to use the command prompt in Windows, I’ll go through some of the basic MS DOS commands that are performed most often.如果你一直想要學習如何使用命令提示符在Windows中,我將通過一些基本的MS DOS命令,即是表現最常見的。 Just so everyone’s on the same page, you can get to the command prompt by going to Start and then click on Run and typing in CMD .剛剛使每個人的就在同一頁上,你可以到命令提示符就會開始 ,然後點擊運行並鍵入CMD公司 。
You’ll now see a large black window with the cursor at the end of the path to your user profile in C:\Documents and Settings\Username.你現在可以看到一個大黑窗口與光標在去年底走上你的用戶檔案在C : \文件和設置\用戶名。 So what to do now!?那麼現在要做! Well, since I can’t explain everything, you’ll probably want to end up using some of the help guides that are provided in MS DOS itself by typing in HELP and pressing Enter.那麼,既然我無法解釋一切,你可能想結束了使用部分的幫助指南提供的MS DOS本身所鍵入的幫助和緊迫進入。
When you do that, you’ll get a list of all the commands you can use in MS DOS and a short description of what they do:當你這樣做的話,您將獲得一個名單上的所有命令,你可以用在MS DOS和簡短描述他們做什麼:
You can also find out more detailed information about the parameters and how to use each command by typing in the command name followed by a /? .您還可以找出更詳細的資料,參數,以及如何利用每個命令輸入該命令的名字,然後由/ ? 。 For example, typing in CD /?, will present you with a quick tutorial on how to use the CD command:例如,打字,在裁談會/ ? ,將你們一個快速補習如何在互聯網上使用cd命令:
As you can see from above, the MS DOS command CD displays the name of or changes the current directory.你可以看到從上面的MS DOS指揮的CD顯示器的名稱或改變當前目錄。 So if you wanted to change from the default user profile directory to let’s say the Windows System32 directory to delete a virus file, you would type in the following to navigate to that directory:因此,如果你想要改變從默認用戶配置目錄,讓的說,在Windows的system32目錄下,刪除病毒文件,你會鍵入以下導航到這個目錄:
cd c:\window\system32 and press Enter 裁談會在C : \窗口\ ,並按下Enter
You current directory at the prompt will now change to:你當前目錄在提示現在將改為:
Now that you are in that directory, you may want to view all of the files and directories first, so you can type in the command DIR and press Enter.現在你將在該目錄中,你可能要查看所有的文件和目錄首先,所以你可以鍵入命令迪爾和記者進入。 You’ll now get a giant list of all of the files and folders in that directory.您現在獲得一個巨大的名單,所有的文件和文件夾,在該目錄中。 You can type in DIR /? and see what parameters you can pass to it.你還可以通過輸入迪爾/ ?看看參數,你可以通過它。
As you can see, you could type in DIR /P to give the list in a paginated format that you can browse through slowly.正如您所看到的,你可以鍵入迪爾/ P為給名單上,在頁碼格式,你可以瀏覽,通過緩慢。 Or you could type in DIR /W to get the list in a wide format rather than one single column.或者你可以鍵入迪爾/ W型,以獲得名單,在廣泛的格式,而不是只有一個單立柱。 The cool thing about DOS is that you can include several parameters for each command, so you could type in DIR /P /W and get a page by page view along with wide format:涼爽的一件事,多的是,你可以包括幾個參數,為每個命令,因此你可以鍵入迪爾/ / W和得到逐頁查看隨著全格式:
There are lots of other commands that you can use to do all sorts of stuff like copy files, make directories, print text files, delete files, etc. So if you can do most of this stuff in Windows using the GUI interface, then why bother with DOS, right?有很多其他命令,你可以用做各種東西一樣,複製文件,使目錄服務,打印文本文件,刪除文件等,所以如果你可以做最這一套在Windows使用的GUI界面,又何須理會之,對不對?
Well, the cool thing is that any command you type in the command prompt, like we showed above, can be saved into a file with a .BAT extension and run anytime by just clicking on the file or can be scheduled to run using the Windows Scheduled Tasks Control Panel applet.好了,酷的事情,就是任何指揮你輸入命令提示,就像我們表現出了以上的,可以被保存到一個文件一個。蝠擴建和運行隨時通過點擊文件或可以預定運行使用Windows預定任務控制面板Applet的。
So if you want to be able to routinely perform some simple actions on your computer, like copying files from one folder to another, just type the commands into Notepad and save the file with a .BAT extension instead of as a text file.因此,如果你希望能夠經常演出一些簡單的行動,在您的計算機上,像複製文件從一個文件夾到另一個,只需鍵入命令到記事本並保存該檔案的一個。蝠延伸而不是作為一個文本文件。 Basically, you have to choose All Files for the File Type option and then type in the name like “MyFile.bat” with the quotes included.基本上,你要選擇所有的文件,為文件類型選項,然後鍵入名稱,如" myfile.bat "隨著行情計算在內。
A couple of other very useful commands that you might have to end up using are listed below:一對夫婦的其他非常有用的命令,你也可能最終採用列舉如下:
- chkdsk - Verifies a hard disk or a floppy disk for file system integrity. chkdsk -驗證硬盤或軟盤文件系統的完整性。
- copy - Copies files from one location to another. 副本 -份文件從一個地點到另一個地方。 The destination defaults to the current directory.目的地默認為當前目錄。 If there are multiple source files, the destination must be a directory or else you will get an error.如果有多個源文件,目的地必須是一個目錄,否則,你會得到一個錯誤。
- fc - Compares two files or sets of files and displays the differences between them 財委會 -比較兩個文件或兩套文件,並顯示彼此之間的分歧
- fdisk - Manipulates hard disk partition tables. fdisk -操縱硬盤分區表。 When run from the command line, it displays a menu of various partitioning operations.在運行時由命令行後,會顯示一個菜單中的各種分割作業。
- format - Delete all the files on the disk and reformat it for MS-DOS. 格式 -刪除所有磁盤上的文件,並格式化它為M S- D OS的。 Use mostly for formatting floppy disks or other removable disks.使用大多是格式化的軟盤或其他可移動磁盤。
- scandisk - Disk diagnostic utility that is a replacement for the CHKDSK utility. scandisk -磁盤診斷公用事業這是一個替代方案, c hkdsk實用程序。
- SFC - System File Checker - Scans all protected system files and replaces incorrect versions with correct file versions. 證監會 -系統文件檢查-掃描所有受保護的系統文件,並取代不正確版本,以正確的文件版本。
That should hopefully get you up and running on how to use and navigate in the MS DOS command prompt!應可望得到您安裝和運行,就如何使用和航行的MS DOS命令提示! If you have a question, please post a comment!如果您有任何疑問,請張貼一條評論! Enjoy!享受!
Technorati Tags: Technorati標記: navigate command prompt瀏覽命令提示符 , , navigate dos command prompt瀏覽DOS命令提示 , , ms dos command prompt的MS DOS命令提示 , , ms dos commands的MS DOS命令If you enjoyed this post, make sure you 如果你喜歡這個職位,請務必 subscribe to my RSS feed 訂閱我的RSS饋送 ! !
» Filed Under »提起下 Computer Tips電腦竅門
Related Posts相關職位
- How to delete undeletable files in Windows (Part 1)如何刪除undeletable文件在Windows ( 1 )
- Another way to hide files and folders in Windows XP另一種方式,以隱藏文件和文件夾在Windows XP
- Enso Launcher - Forget All Your Windows Shortcuts ENSO的射手-忘記您的所有窗口的捷徑
- How to forcefully clear all jobs from a print queue如何有力地清除所有職位,從一個打印隊列
- How to split a large file into multiple smaller pieces如何分裂一個大文件成多個小塊
























