Prev: Desktop Labeling....
Next: Hinding hta source
From: Kenneth A. Larsen on 5 Aug 2010 09:26 "Kenneth A. Larsen" <LarsenK(a)verizon.net> wrote in message news:OqQgqgCNLHA.4824(a)TK2MSFTNGP05.phx.gbl... > > "Leon" <kim.zethsen(a)gmail.com> wrote in message > news:573ad260-1953-468d-b52e-5934af8588fe(a)c10g2000yqi.googlegroups.com... > I see I'm a little unclear > What I mean is i have read ther are a event to be captured when files > are modified. > That should be included in InstanceOperationEvent - but it does not > work. > Only 2 events are comming up - creation and deletion > > On 4 Aug., 16:00, Leon <kim.zeth...(a)gmail.com> wrote: >> Hi >> >> it seem there are only two events responding to wmi >> InstanceOperationEvent. >> namely creation and deletion >> >> nevertheless I see there are a modified also >> >> What am I missing? >> >> I tried this... >> >> strComputer = "." >> Set objWMIService = GetObject("winmgmts:" _ >> & "{impersonationLevel=impersonate}!\\" & _ >> strComputer & "\root\cimv2") >> Set colMonitoredEvents = objWMIService.ExecNotificationQuery _ >> ("SELECT * FROM __InstanceOperationEvent WITHIN 0.1 WHERE " _ >> & "Targetinstance ISA 'CIM_DirectoryContainsFile' and " _ >> & "TargetInstance.GroupComponent= " _ >> & "'Win32_Directory.Name=""C:\\\\temp\\\ >> \myfolder""'") >> Do >> Set objLatestEvent = colMonitoredEvents.NextEvent >> msgbox "event is " & objLatto estEvent.path_.class >> loop >> >> Cheers > > Dear Leon, > You forgot to check you're spelling and grammar. And I think what you're > missing is you should do 2 things with those files you typed on this > E-Mail is you could type them in MS-Dos Prompt if you have that on you're > computer. Or if you have those files, you can see if you have them in > Windows Explorer. If you have any problems, please let me know by emailing > me at 2 addresses. LarsenK(a)verizon.net or kuhlpc#2(a)optimum.net. > > From, > Kenny > >
From: Kenneth A. Larsen on 5 Aug 2010 09:29 "Kenneth A. Larsen" <LarsenK(a)verizon.net> wrote in message news:OqQgqgCNLHA.4824(a)TK2MSFTNGP05.phx.gbl... > > "Leon" <kim.zethsen(a)gmail.com> wrote in message > news:573ad260-1953-468d-b52e-5934af8588fe(a)c10g2000yqi.googlegroups.com... > I see I'm a little unclear > What I mean is i have read ther are a event to be captured when files > are modified. > That should be included in InstanceOperationEvent - but it does not > work. > Only 2 events are comming up - creation and deletion > > On 4 Aug., 16:00, Leon <kim.zeth...(a)gmail.com> wrote: >> Hi >> >> it seem there are only two events responding to wmi >> InstanceOperationEvent. >> namely creation and deletion >> >> nevertheless I see there are a modified also >> >> What am I missing? >> >> I tried this... >> >> strComputer = "." >> Set objWMIService = GetObject("winmgmts:" _ >> & "{impersonationLevel=impersonate}!\\" & _ >> strComputer & "\root\cimv2") >> Set colMonitoredEvents = objWMIService.ExecNotificationQuery _ >> ("SELECT * FROM __InstanceOperationEvent WITHIN 0.1 WHERE " _ >> & "Targetinstance ISA 'CIM_DirectoryContainsFile' and " _ >> & "TargetInstance.GroupComponent= " _ >> & "'Win32_Directory.Name=""C:\\\\temp\\\ >> \myfolder""'") >> Do >> Set objLatestEvent = colMonitoredEvents.NextEvent >> msgbox "event is " & objLatto estEvent.path_.class >> loop >> >> Cheers > > Dear Leon, > You forgot to check you're spelling and grammar. And I think what you're > missing is you should do 2 things with those files you typed on this > E-Mail is you could type them in MS-Dos Prompt if you have that on you're > computer. Or if you have those files, you can see if you have them in > Windows Explorer. If you have any problems, please let me know by emailing > me at 2 addresses. LarsenK(a)verizon.net or kuhlpc#2(a)optimum.net. > > From, > Kenny > >
From: Kenneth A. Larsen on 6 Aug 2010 18:16 "Kenneth A. Larsen" <LarsenK(a)verizon.net> wrote in message news:enK4CJKNLHA.5300(a)TK2MSFTNGP02.phx.gbl... > > "Kenneth A. Larsen" <LarsenK(a)verizon.net> wrote in message > news:OqQgqgCNLHA.4824(a)TK2MSFTNGP05.phx.gbl... >> >> "Leon" <kim.zethsen(a)gmail.com> wrote in message >> news:573ad260-1953-468d-b52e-5934af8588fe(a)c10g2000yqi.googlegroups.com... >> I see I'm a little unclear >> What I mean is i have read ther are a event to be captured when files >> are modified. >> That should be included in InstanceOperationEvent - but it does not >> work. >> Only 2 events are comming up - creation and deletion >> >> On 4 Aug., 16:00, Leon <kim.zeth...(a)gmail.com> wrote: >>> Hi >>> >>> it seem there are only two events responding to wmi >>> InstanceOperationEvent. >>> namely creation and deletion >>> >>> nevertheless I see there are a modified also >>> >>> What am I missing? >>> >>> I tried this... >>> >>> strComputer = "." >>> Set objWMIService = GetObject("winmgmts:" _ >>> & "{impersonationLevel=impersonate}!\\" & _ >>> strComputer & "\root\cimv2") >>> Set colMonitoredEvents = objWMIService.ExecNotificationQuery _ >>> ("SELECT * FROM __InstanceOperationEvent WITHIN 0.1 WHERE " _ >>> & "Targetinstance ISA 'CIM_DirectoryContainsFile' and " _ >>> & "TargetInstance.GroupComponent= " _ >>> & "'Win32_Directory.Name=""C:\\\\temp\\\ >>> \myfolder""'") >>> Do >>> Set objLatestEvent = colMonitoredEvents.NextEvent >>> msgbox "event is " & objLatto estEvent.path_.class >>> loop >>> >>> Cheers >> >> Dear Leon, >> You forgot to check you're spelling and grammar. And I think what you're >> missing is you should do 2 things with those files you typed on this >> E-Mail is you could type them in MS-Dos Prompt if you have that on you're >> computer. Or if you have those files, you can see if you have them in >> Windows Explorer. If you have any problems, please let me know by >> emailing me at 2 addresses. LarsenK(a)verizon.net or kuhlpc#2(a)optimum.net. >> >> From, >> Kenny >> >> > >
From: Kenneth A. Larsen on 7 Aug 2010 10:25 "Kenneth A. Larsen" <kuhlpc#2(a)optimum.net> wrote in message news:O$meaHKNLHA.4824(a)TK2MSFTNGP05.phx.gbl... > > "Kenneth A. Larsen" <LarsenK(a)verizon.net> wrote in message > news:OqQgqgCNLHA.4824(a)TK2MSFTNGP05.phx.gbl... >> >> "Leon" <kim.zethsen(a)gmail.com> wrote in message >> news:573ad260-1953-468d-b52e-5934af8588fe(a)c10g2000yqi.googlegroups.com... >> I see I'm a little unclear >> What I mean is i have read ther are a event to be captured when files >> are modified. >> That should be included in InstanceOperationEvent - but it does not >> work. >> Only 2 events are comming up - creation and deletion >> >> On 4 Aug., 16:00, Leon <kim.zeth...(a)gmail.com> wrote: >>> Hi >>> >>> it seem there are only two events responding to wmi >>> InstanceOperationEvent. >>> namely creation and deletion >>> >>> nevertheless I see there are a modified also >>> >>> What am I missing? >>> >>> I tried this... >>> >>> strComputer = "." >>> Set objWMIService = GetObject("winmgmts:" _ >>> & "{impersonationLevel=impersonate}!\\" & _ >>> strComputer & "\root\cimv2") >>> Set colMonitoredEvents = objWMIService.ExecNotificationQuery _ >>> ("SELECT * FROM __InstanceOperationEvent WITHIN 0.1 WHERE " _ >>> & "Targetinstance ISA 'CIM_DirectoryContainsFile' and " _ >>> & "TargetInstance.GroupComponent= " _ >>> & "'Win32_Directory.Name=""C:\\\\temp\\\ >>> \myfolder""'") >>> Do >>> Set objLatestEvent = colMonitoredEvents.NextEvent >>> msgbox "event is " & objLatto estEvent.path_.class >>> loop >>> >>> Cheers >> >> Dear Leon, >> You forgot to check you're spelling and grammar. And I think what you're >> missing is you should do 2 things with those files you typed on this >> E-Mail is you could type them in MS-Dos Prompt if you have that on you're >> computer. Or if you have those files, you can see if you have them in >> Windows Explorer. If you have any problems, please let me know by >> emailing me at 2 addresses. LarsenK(a)verizon.net or kuhlpc#2(a)optimum.net. >> >> From, >> Kenny >> >> > >
From: Kenneth A. Larsen on 7 Aug 2010 10:28
"Kenneth A. Larsen" <kuhlpc#2(a)optimum.net> wrote in message news:%23GotpxjNLHA.4120(a)TK2MSFTNGP02.phx.gbl... > > "Kenneth A. Larsen" <kuhlpc#2(a)optimum.net> wrote in message > news:O$meaHKNLHA.4824(a)TK2MSFTNGP05.phx.gbl... >> >> "Kenneth A. Larsen" <LarsenK(a)verizon.net> wrote in message >> news:OqQgqgCNLHA.4824(a)TK2MSFTNGP05.phx.gbl... >>> >>> "Leon" <kim.zethsen(a)gmail.com> wrote in message >>> news:573ad260-1953-468d-b52e-5934af8588fe(a)c10g2000yqi.googlegroups.com... >>> I see I'm a little unclear >>> What I mean is i have read ther are a event to be captured when files >>> are modified. >>> That should be included in InstanceOperationEvent - but it does not >>> work. >>> Only 2 events are comming up - creation and deletion >>> >>> On 4 Aug., 16:00, Leon <kim.zeth...(a)gmail.com> wrote: >>>> Hi >>>> >>>> it seem there are only two events responding to wmi >>>> InstanceOperationEvent. >>>> namely creation and deletion >>>> >>>> nevertheless I see there are a modified also >>>> >>>> What am I missing? >>>> >>>> I tried this... >>>> >>>> strComputer = "." >>>> Set objWMIService = GetObject("winmgmts:" _ >>>> & "{impersonationLevel=impersonate}!\\" & _ >>>> strComputer & "\root\cimv2") >>>> Set colMonitoredEvents = objWMIService.ExecNotificationQuery _ >>>> ("SELECT * FROM __InstanceOperationEvent WITHIN 0.1 WHERE " _ >>>> & "Targetinstance ISA 'CIM_DirectoryContainsFile' and " _ >>>> & "TargetInstance.GroupComponent= " _ >>>> & "'Win32_Directory.Name=""C:\\\\temp\\\ >>>> \myfolder""'") >>>> Do >>>> Set objLatestEvent = colMonitoredEvents.NextEvent >>>> msgbox "event is " & objLatto estEvent.path_.class >>>> loop >>>> >>>> Cheers >>> >>> Dear Leon, >>> You forgot to check you're spelling and grammar. And I think what you're >>> missing is you should do 2 things with those files you typed on this >>> E-Mail is you could type them in MS-Dos Prompt if you have that on >>> you're computer. Or if you have those files, you can see if you have >>> them in Windows Explorer. If you have any problems, please let me know >>> by emailing me at 2 addresses. LarsenK(a)verizon.net or >>> kuhlpc#2(a)optimum.net. >>> >>> From, >>> Kenny >>> >>> >> >> > > |