Prev: Script for deploying SP3
Next: VBS not running
From: Kenneth A. Larsen on 21 Aug 2010 08:51 "Kenneth A. Larsen" <kuhlpc#2(a)optimum.net> wrote in message news:esU6lKLQLHA.4988(a)TK2MSFTNGP04.phx.gbl... > > "Kenneth A. Larsen" <kuhlpc#2(a)optimum.net> wrote in message > news:u74GfILQLHA.4828(a)TK2MSFTNGP05.phx.gbl... >> >> "Kenneth A. Larsen" <kuhlpc#2(a)optimum.net> wrote in message >> news:OsRv9GLQLHA.4988(a)TK2MSFTNGP04.phx.gbl... >>> >>> "Kenneth A. Larsen" <kuhlpc#2(a)optimum.net> wrote in message >>> news:OLyAwfwNLHA.1172(a)TK2MSFTNGP04.phx.gbl... >>>> >>>> "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 >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>> >>>> >>> >>> >> >> > >
From: Kenneth A. Larsen on 22 Aug 2010 10:28 "Kenneth A. Larsen" <kuhlpc#2(a)optimum.net> wrote in message news:uvoiU%23SQLHA.4988(a)TK2MSFTNGP04.phx.gbl... > > "Kenneth A. Larsen" <kuhlpc#2(a)optimum.net> wrote in message > news:esU6lKLQLHA.4988(a)TK2MSFTNGP04.phx.gbl... >> >> "Kenneth A. Larsen" <kuhlpc#2(a)optimum.net> wrote in message >> news:u74GfILQLHA.4828(a)TK2MSFTNGP05.phx.gbl... >>> >>> "Kenneth A. Larsen" <kuhlpc#2(a)optimum.net> wrote in message >>> news:OsRv9GLQLHA.4988(a)TK2MSFTNGP04.phx.gbl... >>>> >>>> "Kenneth A. Larsen" <kuhlpc#2(a)optimum.net> wrote in message >>>> news:OLyAwfwNLHA.1172(a)TK2MSFTNGP04.phx.gbl... >>>>> >>>>> "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 >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>> >>>> >>> >>> >> >> > >
From: Kenneth A. Larsen on 22 Aug 2010 10:33 "Kenneth A. Larsen" <kuhlpc#2(a)optimum.net> wrote in message news:ewqidZgQLHA.4156(a)TK2MSFTNGP02.phx.gbl... > > "Kenneth A. Larsen" <kuhlpc#2(a)optimum.net> wrote in message > news:uvoiU%23SQLHA.4988(a)TK2MSFTNGP04.phx.gbl... >> >> "Kenneth A. Larsen" <kuhlpc#2(a)optimum.net> wrote in message >> news:esU6lKLQLHA.4988(a)TK2MSFTNGP04.phx.gbl... >>> >>> "Kenneth A. Larsen" <kuhlpc#2(a)optimum.net> wrote in message >>> news:u74GfILQLHA.4828(a)TK2MSFTNGP05.phx.gbl... >>>> >>>> "Kenneth A. Larsen" <kuhlpc#2(a)optimum.net> wrote in message >>>> news:OsRv9GLQLHA.4988(a)TK2MSFTNGP04.phx.gbl... >>>>> >>>>> "Kenneth A. Larsen" <kuhlpc#2(a)optimum.net> wrote in message >>>>> news:OLyAwfwNLHA.1172(a)TK2MSFTNGP04.phx.gbl... >>>>>> >>>>>> "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 >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>> >>>> >>> >>> >> >> > >
From: Kenneth A. Larsen on 22 Aug 2010 10:36 "Kenneth A. Larsen" <kuhlpc#2(a)optimum.net> wrote in message news:uvoiU%23SQLHA.4988(a)TK2MSFTNGP04.phx.gbl... > > "Kenneth A. Larsen" <kuhlpc#2(a)optimum.net> wrote in message > news:esU6lKLQLHA.4988(a)TK2MSFTNGP04.phx.gbl... >> >> "Kenneth A. Larsen" <kuhlpc#2(a)optimum.net> wrote in message >> news:u74GfILQLHA.4828(a)TK2MSFTNGP05.phx.gbl... >>> >>> "Kenneth A. Larsen" <kuhlpc#2(a)optimum.net> wrote in message >>> news:OsRv9GLQLHA.4988(a)TK2MSFTNGP04.phx.gbl... >>>> >>>> "Kenneth A. Larsen" <kuhlpc#2(a)optimum.net> wrote in message >>>> news:OLyAwfwNLHA.1172(a)TK2MSFTNGP04.phx.gbl... >>>>> >>>>> "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 >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>> >>>> >>> >>> >> >> > >
From: Kenneth A. Larsen on 24 Aug 2010 14:33
"Kenneth A. Larsen" <kuhlpc#2(a)optimum.net> wrote in message news:ecYbNcgQLHA.2692(a)TK2MSFTNGP05.phx.gbl... > > "Kenneth A. Larsen" <kuhlpc#2(a)optimum.net> wrote in message > news:ewqidZgQLHA.4156(a)TK2MSFTNGP02.phx.gbl... >> >> "Kenneth A. Larsen" <kuhlpc#2(a)optimum.net> wrote in message >> news:uvoiU%23SQLHA.4988(a)TK2MSFTNGP04.phx.gbl... >>> >>> "Kenneth A. Larsen" <kuhlpc#2(a)optimum.net> wrote in message >>> news:esU6lKLQLHA.4988(a)TK2MSFTNGP04.phx.gbl... >>>> >>>> "Kenneth A. Larsen" <kuhlpc#2(a)optimum.net> wrote in message >>>> news:u74GfILQLHA.4828(a)TK2MSFTNGP05.phx.gbl... >>>>> >>>>> "Kenneth A. Larsen" <kuhlpc#2(a)optimum.net> wrote in message >>>>> news:OsRv9GLQLHA.4988(a)TK2MSFTNGP04.phx.gbl... >>>>>> >>>>>> "Kenneth A. Larsen" <kuhlpc#2(a)optimum.net> wrote in message >>>>>> news:OLyAwfwNLHA.1172(a)TK2MSFTNGP04.phx.gbl... >>>>>>> >>>>>>> "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 >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>> >>>> >>> >>> >> >> > > |