by Kevin Ritch (15 Submissions)
Category: Complete Applications
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating:
(14 Votes)
This program should be put into the STARTUP folder. It looks to see if a USB Flash Drive has just been inserted and executes the program in the AUTORUN.INF file.
In other words, it enables the CD Style autorun.
No changes are made to the registry and apart from a timer object, it has a very low overhead.
Assumes
The autorun.inf is simply written in the standard format.
Code Returns
No returns... it simply autoruns any program referenced in the Autorun.inf on a USB Flash Drive just as though it were a CD.
Side Effects
The source code is freely distributable
API DeclarationsNo API usage. I used the DIR command instead to keep the overheads down.
Download USB AUTORUN (2 KB)