To start enter the command line. To do this in Windows XP, click "start" then "Run" and type "cmd". In Windows 7 the "start" button, in the search box type "cmd", click on that appears, right-click and choose run as administrator. In case the request to run, click "Yes."
Now you need to find the directory containing the problematic file. Initially you are in the system directory "C:Windowssystem32". To view the contents of a directory, type "dir /p" ("p" responsible for paging) and the computer will give you a list of files and folders, to navigate to the next page, press Enter. In Windows 7 the "p" is optional because in this OS is the ability to scroll the contents of the command line. To display only directories, use the key "/ad" ("dir /ad"), only files – key "/b" ("dir /b").
To navigate to another directory use the command "cd < path to directory >" (for example, typing "cd C:Windows", you will be taken to the Windows directory, from the start there as you can get with the command "cd ..", which is used to navigate one level back). If you need to change the drive – type "<drive letter>:" (e.g. "D:").
Now that you have found a directory, and in it you need file – just enter the name of this file. The file opens using the program, which according to the established parameters needs to open it. In the future, you don't have to go to the folder with the fileof ω, it is enough just to remember the full path to it (see image in step).
Common commands common to create the. batfiles, which spells out in advance all the teams. For the execution of the. batfileand just run. These files can be made uniform (for example, to copy only specific files and all).
The command line provides the ability to perform other file operations, for example, the file can be copy, move, split, rename, delete and create file or directory.
Advice 2: In command prompt go to folder
In modern operating systems with graphical interface to navigate to the desired folder is the default program of file Manager. To perform this operation in the command line interface, have very rarely, but any special knowledge in these cases is not required, just simple rules of making just one DOS command.
You will need
- ОС Windows.
Launch the terminal command prompt - go to the main menu of the operating system, start typing "com" and click "Command prompt" in the list of search results. In earlier versions of Windows - Windows XP - press Win + R, type cmd, and press Enter.
If the desired folder is not located on the system drive, type the letter of the desired volume, place a colon and press Enter. You can then type the command go to the specific folder of the disk.
Use the command chdir or its shortened version cd to navigate to the desired folder. The only required parameter that you must specify with this command is the path to the folder from the root directory of the disk. Enter it, separated from the command by a space, and then press Enter.
Windows the latest versions, Vista and Seven have the opportunity to run the CLI with the already completed transition to the desired folder. To do this, use the file Manager of the operating system - Windows Explorer. Go with it in your directory, press the Shift key and click the folder icon with the right mouse button. Select the context menu item "Open command window here", and the rest - start a terminal and navigate to this folder - do the OS.
Windows Explorer can be used and working with the cd command in an already running emulator command line. First, in the usual way, type the command and put a space. In order not to type the long address of the folder location, copy it into the address line of the file Manager and switch to command line terminal. Standard Windows hotkeys, including designated operations of copy and paste do not work, so open the context menu and select "Paste". After that you press Enter to complete the transaction.