Search code examples
javascriptautomationwindow.open

Is it possible to run js file on flash drive automatically when it's plugged in?


I am trying to make a flash drive that automatically runs a simple window.open() when plugged in. Is this possible?

Note: The operating system I am using is ChromeOS. If it's not possible to do on ChromeOS, can you do it on Windows?


Solution

  • No.

    The ability to run files automatically from a flash drive was removed in Windows 7, for security reasons.