i found that starting a VBScript from an autorun.inf file caused an error so i used a batch file to start the vbscript.
Contents of Autorun.inf
[autorun]
OPEN=Autorun.bat
Contents of Autorun.bat
@ECHO off
start .\Autorun.vbs
exit
edit the file autorun.vbs as you see fit.