How To Create A Program For A USB Flash Drive

Table of contents:

How To Create A Program For A USB Flash Drive
How To Create A Program For A USB Flash Drive

Video: How To Create A Program For A USB Flash Drive

Video: How To Create A Program For A USB Flash Drive
Video: How to Install Software on a USB Flash Drive 2024, April
Anonim

Sometimes it is convenient for programs to be launched from the flash drive automatically immediately after connecting the flash drive to the computer. This may be necessary when working with antivirus programs, as well as with any programs whose immediate launch will increase the user's efficiency on the computer.

How to create a program for a USB flash drive
How to create a program for a USB flash drive

Necessary

administrator rights

Instructions

Step 1

The system file autorun.inf is responsible for the automatic launch of the contents of the media. To create an automatic launch of any program from a flash drive, you need to create a file with this name and save it in the root of the flash drive. Also, do not forget that such files often hide viral programs, so try to check all USB drives that you insert into your personal computer.

Step 2

Open Notepad and save the empty file as autorun.inf. If you plan to open this file for editing in Notepad for some time, you can set the extension later, when the contents of the file are written.

Step 3

Add the following lines to the file [autorun] open = [path to file] The first word is required, the second word is the command to open the file, the path to which is specified after the equal sign. The path to the file must be specified through the name of the medium, and not through its letter of the partition, since in another operating system the letter of the partition will be different. Enter the file path carefully. If you need to open several programs at the same time, write two lines in a row, only specify different paths in them, since programs cannot be in the same place.

Step 4

Save your changes and name the file correctly. Copy the file to the media and check the result: remove the media and reconnect it to the computer. If autorun does not occur, your operating system may have disabled the ability to autorun from media. In this case, you will need to start the corresponding services, or edit the antivirus settings. Examine the contents of the autorun file to find out all the possible commands and their parameters.

Recommended: