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和简短描述他们做什么:

的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命令:

指挥promt指令

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:你当前目录在提示现在将改为:

的MS DOS命令

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.你还可以通过输入迪尔/ ?看看参数,你可以通过它。

迪尔的MS DOS命令

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和得到逐页查看随着全格式:

迪尔DOS命令

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标记: , , ,

If you enjoyed this post, make sure you 如果你喜欢这个职位,请务必 subscribe to my RSS feed 订阅我的RSS馈送 !

» Filed Under »提起下 Computer Tips电脑窍门

Related Posts相关职位

Please post your comments/suggestions!请您评论/建议!