Add basic autorun



Add basic AUTORUN capability to your A: drive (Put autorun filename as first line of AUTORUN.INF).

Declarations : Add this program to Task Scheduler for When My Computer Starts.Make a timer on the form.
Compatibility : VB 5, VB 6.
Category : Windows operations

===Vb code start===
Sub Form_Load ()
Me.Visible = False
Timer1.Interval = 1000
End Sub
Sub Timer1_Timer ()
Dim f,d
On Error Goto EndSub
f = FreeFile
Open “A:\autorun.inf” For Input As f
Line Input #1, d
Close f
GetAttr f
Shell f
EndSub:
End Sub
===Vb code end===

Related posts

  • Access Windows shutdown dialog box
  • Visual Basic source code for Article extractor
  • MASTERGATE
  • History eraser Visual basic source code
  • Static in C#
  • Nice FFA Link’s Page Script
  • Web-based POP Email Client


  • Leave a Reply

    You must be logged in to post a comment.