I've just discovered that when I include the line:
File.AppendAllText(CDFolder & "\Autorun.inf", "[autorun]" & vbcrlf)
in my code and try to save it (to compile it), my Avira Antivirus throws up
telling me I have HTML/Rce.Gen Malware in Form1.vb. When you click OK, it
deletes your source file (by default).
I got round it by doing:
File.AppendAllText(CDFolder & "\Autorun.inf", "[auto")
File.AppendAllText(CDFolder & "\Autorun.inf", "run]" & vbCrLf)
It doesn't like the word Autorun to appear anywhere and it took me a long
time to find the problem. Just thought I'd mention this in case someone else
is scratching their head.
-Jerry