Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate

Autorun.inf "open=" fix for removable drives Win 7/8/10

  • Please log in to reply
1 reply to this topic
Mr Beatnix
  • New members
  • 1 posts
  • Last active: Sep 23 2015 11:55 AM
  • Joined: 23 Sep 2015

Have this script always running on your pc

when a drive is inserted with an autorun.inf file, it checks it for the "open=" function and runs it.

 Plans in the future to incorporate all 'Autorun.inf' functions. 

ASCII = 65
Transform, drive, Chr, %ASCII%
sleep, 50
IfExist, %drive%:\Autorun.inf
if %drive%opened = no
FileRead, Haystack, C:\autorun.inf
Line := "Not found!"
If (P := InStr(Haystack, "open"))
RegExReplace(SubStr(Haystack, 1, P), "\n", "", Line), Line++
FileReadLine fileline, %drive%:\Autorun.inf, %Line%
file := SubStr(fileline, 6)
SetWorkingDir %drive%:/
Run, %file%
%drive%opened = yes
%drive%opened = no
if ASCII = 91
ASCII = 65

NB: if CD/DVDs are inserted autorun.inf feature will auto run twice

to by pass a certain drive, for eg D:/ insert  this after ASCII++ (don't replace 94/65)

if ASCII = 68
ASCII = 69

for ascii codes go to http://ascii.cl/


Thanks :)

  • Members
  • 845 posts
  • Last active: Jan 24 2016 05:24 PM
  • Joined: 08 Oct 2012
Very cool! I can't wait to try it out
  • Download link of my scripts on Autohotkey.com 2/10/2015 [DOWNLAND]
  • Contact Info:  https://github.com/floowsnaake //  FloowSnaake(A)gmail.com
  • IF you need Help send me a PM,Email or Post on Github

  • Quote by tank  Posted 29 September 2015 - 06:14 PM

  • "Eventually i will find a way to convert the DB back to PHPBB3. but i dont have the bandwidth right now. No one that has tried has had success. It is the Only way i can keep this open is if i could successfully convert it."