How to navigate in the DOS command prompt Como navegar no comando prompt do DOS
Posted on February 25, 2008 at 7:04 am Postado em 25 de fevereiro de 2008, 7:04 am
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! Já hoje tive de arrancar um clientes computador em modo seguro e excluir um vírus via command prompt do DOS, pois se o Windows carregado, o arquivo bloqueado e tornar-se-ia, portanto, 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! Há várias outras razões pelas quais você pode ter que usar o comando prompt em sua vida (embora raramente), e isso é muito bom para saber como navegar no seu caminho!
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. Se você tiver sido querer saber mais sobre como usar o comando prompt no Windows, eu vou passar por alguns dos básicos MS DOS comandos que são realizados com mais freqüência. 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 . Basta para que todos os's na mesma página, você pode obter o prompt de comando vá para Iniciar e clique em Executar e digitando no 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. Você vai ver agora um grande janela preta com o cursor no final do caminho para o seu perfil de utilizador C: \ Documents and Settings \ Utilizador. So what to do now!? Então, o que fazer agora? 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. Pois bem, uma vez que eu não posso explicar tudo, você provavelmente vai querer acabar usando algumas das ajudar guias que são prestados no próprio MS DOS, digitando o AJUDA e pressionando Enter.
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: Quando você fizer isto, você obterá uma lista de todos os comandos que poderá utilizar no MS DOS e uma breve descrição do que eles fazem:
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 /? . Você também pode encontrar mais informações detalhadas sobre os parâmetros e como utilizar cada comando, digitando o nome do comando seguido por um /?. For example, typing in CD /?, will present you with a quick tutorial on how to use the CD command: Por exemplo, digitando no CD /?, Irá apresentar-lhe um rápido tutorial sobre como usar o comando CD:
As you can see from above, the MS DOS command CD displays the name of or changes the current directory. Como você pode ver a partir de cima, o MS DOS CD comando exibe o nome do diretório atual ou mudanças. 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: Portanto, se você quiser mudar o perfil de utilizador padrão do diretório para digamos que o Windows System32 diretório para apagar um arquivo vírus, você deve digitar o seguinte para navegar para esse diretório:
cd c:\window\system32 and press Enter Cd c: \ janela \ system32 e pressione Enter
You current directory at the prompt will now change to: Você diretório atual no prompt irá mudar agora para:
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. Agora que você está no diretório, você pode querer visualizar todos os arquivos e diretórios primeiro, de modo que você pode digitar o comando DIR e pressione Enter. You’ll now get a giant list of all of the files and folders in that directory. Irá agora receber uma gigantesca lista de todas as pastas e arquivos no diretório. You can type in DIR /? and see what parameters you can pass to it. Você pode digitar no DIR /? Parâmetros e ver o que você pode passar para ele.
As you can see, you could type in DIR /P to give the list in a paginated format that you can browse through slowly. Como você pode ver, você pode digitar na DIR / P dar a lista em um formato paginated que você pode navegar através lentamente. Or you could type in DIR /W to get the list in a wide format rather than one single column. Ou você pode digitar na DIR / W para obter a lista em uma grande formato, em vez de uma única coluna. 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: O cool DOS coisa é que você pode incluir vários parâmetros de cada comando, por isso você pode digitar na DIR / P / W e obter uma página por página, juntamente com a perspectiva de grande formato:
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? Existem muitos outros comandos que você pode usar para fazer todo tipo de coisas como copiar arquivos, diretórios fazer, imprimir ficheiros de texto, apagar arquivos, etc Então, se você pode fazer a maioria deste material em Windows utilizando a interface GUI, então porquê Preocupar com o DOS, certo?
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. Bem, o cool é que qualquer comando que digitar no prompt de comando, como nos mostrou acima, podem ser salvos em um arquivo com a extensão. BAT extensão e executar qualquer momento por apenas clicar sobre o arquivo ou pode ser programado para ser executado utilizando o Windows Tarefas agendadas Control Panel 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. Portanto, se você quiser ser capaz de executar algumas ações simples que rotineiramente em seu computador, como copiar arquivos de uma pasta para outra, basta digitar os comandos em Notepad e salve o arquivo com a extensão. BAT ampliação, em vez de como um arquivo de texto. 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. Basicamente, você tem que escolher Todos os arquivos para o Arquivo Tipo opção e, em seguida, digite o nome como "MyFile.bat", com as aspas incluídas.
A couple of other very useful commands that you might have to end up using are listed below: Um jovem de outros comandos muito útil que você pode ter que acabam usando estão listados abaixo:
- chkdsk - Verifies a hard disk or a floppy disk for file system integrity. Chkdsk - Verifica um disco rígido ou em disquete para a integridade do sistema de lima.
- copy - Copies files from one location to another. Cópia - Cópias arquivos de um local para outro. The destination defaults to the current directory. O destino padrão para o diretório atual. If there are multiple source files, the destination must be a directory or else you will get an error. Se houver vários arquivos fonte, o destino deve ser um diretório ou senão você irá receber uma mensagem de erro.
- fc - Compares two files or sets of files and displays the differences between them Ip - Compara dois arquivos ou conjuntos de arquivos e mostra as diferenças entre eles
- fdisk - Manipulates hard disk partition tables. Fdisk - Manipulates disco rígido partição tabelas. When run from the command line, it displays a menu of various partitioning operations. Quando executado a partir da linha de comando, ele exibe um menu de particionamento diversas operações.
- format - Delete all the files on the disk and reformat it for MS-DOS. Formato - Excluir todos os arquivos no disco e reformatá-la para MS-DOS. Use mostly for formatting floppy disks or other removable disks. Use principalmente para formatar disquetes ou outros discos removíveis.
- scandisk - Disk diagnostic utility that is a replacement for the CHKDSK utility. Scandisk - Disk diagnóstico utilidade que é um substituto para o utilitário CHKDSK.
- SFC - System File Checker - Scans all protected system files and replaces incorrect versions with correct file versions. CPF - File System Checker - varreduras todos os arquivos protegidos sistema e substitui versões incorretas com versões arquivo correto.
That should hopefully get you up and running on how to use and navigate in the MS DOS command prompt! Esperemos que deve fazê-lo para cima e correndo sobre como usar e navegar no MS DOS command prompt! If you have a question, please post a comment! Se você tiver alguma dúvida, por favor postar um comentário! Enjoy! Divirta-se!
Technorati Tags: Technorati Tags: navigate command prompt Navegar command prompt , De navigate dos command prompt Navegar dos command prompt , De ms dos command prompt Sra. dos command prompt , De ms dos commands Ms dos comandosIf you enjoyed this post, make sure you Se você gostou deste post, certifique-se de subscribe to my RSS feed Inscrever-se em meu feed RSS ! !
» Filed Under »Arquivado Sob Computer Tips Computador Dicas
Related Posts Related Posts
- How to delete undeletable files in Windows (Part 1) Como undeletable apagar arquivos no Windows (Parte 1)
- Another way to hide files and folders in Windows XP Outra forma de esconder pastas e arquivos no Windows XP
- Enso Launcher - Forget All Your Windows Shortcuts Enso lançador - esquecer todas as suas janelas atalhos
- How to forcefully clear all jobs from a print queue Como a veemência todos os empregos a partir de uma clara impressão fila
- How to split a large file into multiple smaller pieces Como rache uma lima grande em várias partes menores
























