Comment by unsnap_biceps

5 days ago

Microsoft seems to disagree with your assertion.

> An autorun.inf file is a text file that can be used by the Autorun and AutoPlay components of Microsoft Windows. When a USB drive is plugged into a USB port, an autorun USB dialog appears that prompts you to do certain operations: print images, run Windows Media Players, or open a folder. But what if you have a particular application on the USB drive and want it to be launched from the autorun USB dialog? You can put autorun.inf into the root of the USB drive and edit its commands to get the app started when the USB key is plugged.

https://answers.microsoft.com/en-us/windows/forum/all/enable...

> Created on November 17, 2022 > Applies to: Windows / Windows 11 / Files, folders, and storage

Thats a Microsoft community forums agent though, and in my experience they spam low effort boilerplate solutions in hopes of getting a few votes. If they searched the web specifically for how to do something only possible before 2007, then it does make sense they found instructions from that era. Here's the info from https://en.wikipedia.org/wiki/Autorun.inf that seems more up to date "For all drive types, except DRIVE_CDROM, the only keys available in the [autorun] section are label and icon. Any other keys in this section will be ignored."

Autorun still exists, but at least on windows 10, it doesn't run the exe right away. It shows a popup box that asks you whether to run the exe or open the drive in explorer.