How To Open Files With Parameters

Table of contents:

How To Open Files With Parameters
How To Open Files With Parameters

Video: How To Open Files With Parameters

Video: How To Open Files With Parameters
Video: C Programming Tutorial - 51 - How to Read Files 2024, May
Anonim

There are two large classes of files, one of which is executable programs, and the other is data storage for files of the first class. When you double-click an image file, for example, the operating system launches the graphics viewer executable and passes it a link to the file of your choice as a parameter. If necessary, the user himself can do the same - run the desired file, passing it any parameters.

How to open files with parameters
How to open files with parameters

Necessary

Windows OS

Instructions

Step 1

If you need to run an executable file with a specific parameter, you can do this in Explorer. Open the file manager, for example, using the "hot keys" Win + E. Then enter the full path to the required file in the address bar of the program. If it is too complicated for manual typing, go to the folder containing the executable file and click on the address bar of "Explorer". The full path to the folder will already be contained in it, you just need to add the file name and add the required parameter separated by a space. Then press the Enter key and the operating system will run the specified program with the given key.

Step 2

The same can be done using the search engine built into Windows 7 and Vista. Open the main menu by clicking on the "Start" button, and in the search query field, type the full path to the file, and list all the necessary parameters separated by spaces. Ignore the OS attempts to find anything that matches your search query, just press Enter when you're done typing - the result will be exactly the same as in the previous step.

Step 3

In earlier Windows versions, instead of the search engine, you can use the program launch dialog - open it by pressing the Win + R keys. In this dialog there is only one field, in which you need to enter the full path to the executable file and list the parameters passed to it. The launch command can be given here either by pressing the Enter key or by clicking on the OK button. In recent versions of Windows, this method can also be used.

Step 4

If you need to open with parameters not an executable file, but a file with data, then you need to determine which of the programs is responsible in the operating system for working with such data. Then, by any of the methods described above, run the executable file of this program, specifying the data file as one of the parameters and adding all the others separated by a space.

Recommended: