I have a usb and I want to run a specific file automatically. How do I do that? And what should I install?

It’s a small file and I want to know what to install and how to do it

Asker: tibo, 10 years

Answer

Dear Tibo,

Suppose you have the folder on your USB with drive letter H
H:File
In this folder is the program “example.exe” and you want this program to run when you insert the USB Memory Stick into your computer.

Then create in H:File
Autorun.INF
at. Make sure it’s real
Autorun.INF
hot and not by notepad or wordpad
Autorun.INF.txt
is called.

You can check this by unchecking the “Hide known file types” option in the explorer settings. I don’t have Dutch Windows myself and will show you below for the English Vista. If you don’t understand, ask your mom or dad for help.

Open the Explorer. Then click on the first menu option “Organize” at the top left.
Then click on the “Organize -> Folder and Search options” option.
Then click on the “View” tab in the middle.
Now uncheck the “Hide known file types” option.
You can now clearly see whether the file you have created on the memory stick
Autorun.INF is called or Autorun.INF.txt.
Make sure it’s named Autorun.INF.

Now open this file Autorun.INF with notepad.
Now type the following lines

[Autorun]

UseAutoplay=1
Open=.Fileexample.exe

Replace File with the name of your folder (if you have the program in a folder).
Replace “example.exe” with the name of the program you want to run.

This was it.
Hopefully it works!

Kind regards,

Answered by

ing. John Bijnens

CNC – CAD/CAM -Software Development

I have a usb and I want to run a specific file automatically.  How do I do that?  And what should I install?

Catholic University of Leuven
Old Market 13 3000 Leuven
https://www.kuleuven.be/

.

Recent Articles

Related Stories