DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Wed, 20 Jun 2007 09:21:41 -0700,    posted on: microsoft.public.dotnet.framework.wmi        back       

Thread Index
  1    tekiegreg
          2    Jonathan Liu [MSFT]


How to query to look for the creation of a .xls file?   
Need a sample query for example that can watch for the origination of
just a .XLS file in WMI.  So far I've come up with this (note, not
entirely my work, cobbled together from websites as I'm still new to
WMI).

SELECT * FROM __InstanceCreationEvent WITHIN 10
 WHERE TargetInstance ISA "CIM_DirectoryContainsFile"
 AND TargetInstance.GroupComponent = "Win32_Directory.Name=\"e:\\\\Test
\""

Now within test can I trigger it to only return .xls files?  Are
wildcards allowed?  Thanks!
Date:Wed, 20 Jun 2007 09:21:41 -0700   Author:  

Re: How to query to look for the creation of a .xls file?   
This is what you are looking for:

http://www.microsoft.com/technet/scriptcenter/resources/qanda/oct04/hey1011.mspx


-- 
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at 
http://www.microsoft.com/info/cpyright.htm
--
"tekiegreg"  wrote in message 
news:1182356501.802365.206550@p77g2000hsh.googlegroups.com...

> Need a sample query for example that can watch for the origination of
> just a .XLS file in WMI.  So far I've come up with this (note, not
> entirely my work, cobbled together from websites as I'm still new to
> WMI).
>
> SELECT * FROM __InstanceCreationEvent WITHIN 10
> WHERE TargetInstance ISA "CIM_DirectoryContainsFile"
> AND TargetInstance.GroupComponent = "Win32_Directory.Name=\"e:\\\\Test
> \""
>
> Now within test can I trigger it to only return .xls files?  Are
> wildcards allowed?  Thanks!
> 
Date:Thu, 21 Jun 2007 12:04:16 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us