![]() ![]() Updated: by Computer Hope Tip: A file may be or created only to be viewed by a particular program. The examples below are used to open a file. I have a folder with about 50 subfolders. The number of files in these subfolders is somewhere in the neighborhood of 500. And there are a few folders I need to create a list where the structure is clear and obvious and the content in each subfolder and sub-subfolder is included. I need the list as a file. If the file looks like when opened, the program used to open the file is not capable of viewing the file. Make sure the program you need to open the file is installed on the computer and that it is associated with the file type. If you don't know what program to use, determine the and review our page for a listing of associated programs. Below is a listing of how to view the contents of a plain text file for each of the major PC operating systems. • • • • Microsoft Windows users the file that you want to open. If the file is an unassociated file, you will receive an 'Open With' window. If you are unfamiliar with what program to use to open this file, try using or to view the file. • If the file is associated with a program, but you want to open it with a different program, hold down the and the file. In the drop-down menu, select the Open With option and select the program you want to use to open the file. If you know what software you want to use to open the file, it can also be opened from in the program by following the steps below. • Open the program you want to use to open and view the file. For example, if you wanted to view the file in, you could open it first. • Once the program is opened, from the select Open or use the keyboard shortcut Ctrl+O. • In the Open window, to the location of the file, select the file, and click Ok or Open. Note: If you cannot see the file change what files are shown. For example, if the program is only showing *.doc and you're trying to open a txt file it will not be shown until you change what files are being shown. • Finally, if the program supports the file, it should open and display the contents of the file in the program. Tip: Windows users can also use the methods mentioned below to open a file from the Windows command line. MS-DOS and Windows command line users List files If you need to view a list of available files in the, you can use the command. Edit command Locate the file that you want to view. In the example below, we will be opening the file autoexec.bat in the current directory. Edit autoexec.bat Note: If the file typed does not exist, was entered improperly, or is empty, a blank edit window similar to the example below will be seen. Once you have edited the file or typed the information for the file, click File, and choose Exit. If you do not have a, see the edit command page for keyboard shortcuts and other navigation tips. After clicking exit, if any changes were made, the computer will prompt you if you want to save the file. Click Yes and the file will be created or overwritten with the changes made. • See our page for further information on this command. Start command New versions of Windows that are 64-bit no longer support the edit command. You can also use the start command to start a file in a text editor, such as Notepad, using a command similar to the example below. Start notepad hope.txt In the above example, if the file 'hope.txt' did not exist in the current directory, you are prompted to create a new file. The start command can also be used to start any file on your computer. For example, if you have Microsoft Word installed on the computer and want to open a Word document from the command line, you can use the following command. Start hope.doc • See our page for further information about this command. Type command If editing or changing the contents of the file is not important and you only want to view the contents of the file, you can also use the type command. Type hope.txt In the above example, the command would display all of the contents of the hope.txt to the file. If the file is a large file, it will keep scrolling unless you press the. For large files, you can also the command to more as shown in the example below. Type hope.txt| more In the example above, the type command displays the contents one page at a time. Pressing the will advance the output one line at a time and pressing the advances the output one page at a time. • In MS-DOS, you can also use the to display the contents of a text file.
0 Комментарии
Оставить ответ. |
АвторНапишите что-нибудь о себе. Не надо ничего особенного, просто общие данные. Архивы
Март 2019
Категории |