Using MSAgent to Scan the Start Menu (VB6, MSAgent 2)

Using MSAgent to Scan the Start Menu (VB6, MSAgent 2) -...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Using MSAgent to Scan the Start Menu (VB6, MSAgent 2) http://abstractvb.com/code.asp?A=650 1 of 3 11/21/2006 11:53 PM Main > Code Central Using MSAgent to Scan the Start Menu ID: 650 Author: Abstractvb Date: 3/16/2000 7:40:47 PM VB6, MSAgent 2 Note this code will ignore duplicate shortcuts. For example I have 4 or 5 shortcuts in my Start Menu that are named "Readme.txt." Only the first instance of these will get added to the commands all others will produce an error and will be ignored. Add the following objects to your project: Object Type Object Name New Module Doesn't matter New Form frmMain Function SubMain() - The project will need to start up here. Microsoft Agent Control Agent Add the following to a new code module: Option Explicit Public Declare Function ShellExecute Lib "shell32.dll" _ Alias "ShellExecuteA" _ (ByVal hwnd As Long, _ ByVal lpOperation As String, _ ByVal lpFile As String, _ ByVal lpParameters As String, _ ByVal lpDirectory As String, _ ByVal nShowCmd As Long) As Long Public a As IAgentCtlCharacter Public Request As Object
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 07/16/2008 for the course MIS 225 taught by Professor Byrtus during the Winter '08 term at Mercyhurst.

Page1 / 3

Using MSAgent to Scan the Start Menu (VB6, MSAgent 2) -...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online