<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.iis.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:cs="http://blogs.iis.net/"><channel><title>Search results matching tag 'FS input format'</title><link>http://forums.iis.net/search/SearchResults.aspx?o=DateDescending&amp;tag=FS+input+format&amp;orTags=0</link><description>Search results matching tag 'FS input format'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>RE: Directory Tree</title><link>http://forums.iis.net/p/1145265/1855275.aspx#1855275</link><pubDate>Fri, 22 Jun 2007 17:44:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1855275</guid><dc:creator>LogParser User : José Gisbert</dc:creator><cs:applicationKey>input_formats-51</cs:applicationKey><description>More Easy:&lt;br&gt;C:\&gt;Tree /A  &gt; My_C_Tree.txt&lt;br&gt;;o)&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</description></item><item><title>LASTACCESSTIME showing wrong date</title><link>http://forums.iis.net/p/1146036/1851248.aspx#1851248</link><pubDate>Wed, 06 Jun 2007 16:01:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1851248</guid><dc:creator>LogParser User : Vizo</dc:creator><cs:applicationKey>input_formats-51</cs:applicationKey><description>&lt;P&gt;Hello guys:&lt;/P&gt;&lt;P&gt;Using logparser to generate a report so I can clean up my file server. For some reason logparser is giving me a year of 1969 on some files. running my query on a windows 2003 server against a share on windows 2000 if that helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;vizo&lt;/P&gt;</description></item><item><title>RE: Supress error when no matching files?</title><link>http://forums.iis.net/p/1146006/1855229.aspx#1855229</link><pubDate>Sat, 19 May 2007 00:12:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1855229</guid><dc:creator>LogParser User : David Manley</dc:creator><cs:applicationKey>input_formats-51</cs:applicationKey><description>&lt;P&gt;Thanks Daniel. Your reply got me thinking along a suitable track.&lt;/P&gt;&lt;P&gt;I was averse to having a "token" file that is known to exist on the basis that one day there may be a need to include the given token file in the results but a variation on your&amp;nbsp;suggestion works for me. Namely, to include within the "from" list&amp;nbsp;a&amp;nbsp;known directory&amp;nbsp;(i.e. '.') and then exclude directories via a check on the attributes, such as:&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size=1&gt;"f:\Program Files\Log Parser 2.2\LogParser.exe" -i:FS "SELECT path FROM '%WINDIR%\*.xyz', '.' WHERE substr(attributes,0, 1) &amp;lt;&amp;gt; 'D'"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size=1&gt;Statistics:&lt;BR&gt;-----------&lt;BR&gt;Elements processed: 2&lt;BR&gt;Elements output:&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;BR&gt;Execution time:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.78 seconds&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR&gt;&lt;FONT face="Courier New" size=1&gt;F:\temp&amp;gt;echo %errorlevel%&lt;BR&gt;0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description></item><item><title>RE: Supress error when no matching files?</title><link>http://forums.iis.net/p/1146006/1855256.aspx#1855256</link><pubDate>Fri, 18 May 2007 11:16:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1855256</guid><dc:creator>LogParser User : DEinspanjer</dc:creator><cs:applicationKey>input_formats-51</cs:applicationKey><description>Hrm. Only thing I can think of off the top of my head is to have a dummy file that is always there.&lt;br&gt;Something like this worked for me:&lt;br&gt;&lt;br&gt;&lt;pre&gt;"C:\Program Files\Log Parser 2.2\LogParser.exe" -i:FS "SELECT path FROM C:\tmp\scores.txt, 'C:\tmp\*.xyz' WHERE Path &lt;&gt; 'C:\tmp\scores.txt'"&lt;br&gt;Statistics:                                                                                                            &lt;br&gt;-----------                                                                                                            &lt;br&gt;Elements processed: 1                                                                                                  &lt;br&gt;Elements output:    0                                                                                                  &lt;br&gt;Execution time:     0.08 seconds&lt;/pre&gt;</description></item><item><title>Supress error when no matching files?</title><link>http://forums.iis.net/p/1146006/1851218.aspx#1851218</link><pubDate>Fri, 18 May 2007 08:29:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1851218</guid><dc:creator>LogParser User : David Manley</dc:creator><cs:applicationKey>input_formats-51</cs:applicationKey><description>&lt;P&gt;When the input format is file system, if no files match the pattern, LogParser considers this an error. This is demonstable by the following:&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size=1&gt;"C:\Program Files\Log Parser 2.2\LogParser.exe" -i:FS "SELECT path FROM '%WINDIR%\*.xyz'"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size=1&gt;Task aborted.&lt;BR&gt;Cannot open &amp;lt;from-entity&amp;gt;: Cannot find any file or folder matching&lt;BR&gt;&amp;nbsp; "C:\WINDOWS\*.xyz"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size=1&gt;Statistics:&lt;BR&gt;-----------&lt;BR&gt;Elements processed: 0&lt;BR&gt;Elements output:&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;BR&gt;Execution time:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.67 seconds&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size=1&gt;F:\temp&amp;gt;echo %errorlevel%&lt;BR&gt;2&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Does anyone know of a way to get LogParser to not consider the absence of any matching files as being an error? (Note the example is for illustrative purposes only, so that it can be run by anyone, rather than the actual query that is to be run).&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description></item><item><title>RE: Compare fs listing against IIS listing</title><link>http://forums.iis.net/p/1145880/1855020.aspx#1855020</link><pubDate>Fri, 26 Jan 2007 17:30:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1855020</guid><dc:creator>LogParser User : DEinspanjer</dc:creator><cs:applicationKey>input_formats-51</cs:applicationKey><description>by "documented" I mean I made a post where I gave an example of using the TPL output format to create a SQL query file that is then run by LP. It's in the General Discussion forums</description></item><item><title>RE: Compare fs listing against IIS listing</title><link>http://forums.iis.net/p/1145880/1855061.aspx#1855061</link><pubDate>Fri, 26 Jan 2007 13:12:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1855061</guid><dc:creator>LogParser User : justSteve</dc:creator><cs:applicationKey>input_formats-51</cs:applicationKey><description>[QUOTE User="LogParser User : justSteve"]Quote: I can't say as there is actually a drop dead easy way.   Let me see if I understand exactly what you want. You want to run an LP query against the IIS log files to find out "active" pages, then you wa...[/QUOTE] &lt;br /&gt;Thanks for the quick reply...given this is a one off situation i'm probably best off importing to a couple sql tables. But it would be interesting to see real-world TPL samples.</description></item><item><title>RE: Compare fs listing against IIS listing</title><link>http://forums.iis.net/p/1145880/1855019.aspx#1855019</link><pubDate>Fri, 26 Jan 2007 13:01:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1855019</guid><dc:creator>LogParser User : DEinspanjer</dc:creator><cs:applicationKey>input_formats-51</cs:applicationKey><description>I can't say as there is actually a drop dead easy way. &lt;img src='images/emotions/smile.gif' height='20' width='20' border='0' title='Smile' align='absmiddle'&gt;&lt;br&gt;Let me see if I understand exactly what you want.&lt;br&gt;You want to run an LP query against the IIS log files to find out "active" pages, then you want to run another LP query against the FS input format to find files that are not in that "active" pages list?&lt;br&gt;&lt;br&gt;Because of the limitations in the current version of LP of not being about to do subqueries against different input formats (e.g. can't query FROM FS with a subquery that queries FROM IIS), you'll have to do some magic to get the list of active pages into your second query.&lt;br&gt;&lt;br&gt;I'd suggest using the TPL query generation method I documented in the General Discussion forum a while back.  The first IIS query will output a list of the file names into a TPL format that is actually writing a new query that contains a where clause along the lines of:&lt;br&gt;WHERE FileName NOT IN (&lt;br&gt;'fn1.asp';&lt;br&gt;'fn2.asp';&lt;br&gt;'fn3.asp';&lt;br&gt;)&lt;br&gt;&lt;br&gt;And then you run LP on that generated query.</description></item><item><title>Compare fs listing against IIS listing</title><link>http://forums.iis.net/p/1145880/1851092.aspx#1851092</link><pubDate>Fri, 26 Jan 2007 12:29:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1851092</guid><dc:creator>LogParser User : justSteve</dc:creator><cs:applicationKey>input_formats-51</cs:applicationKey><description>&lt;P&gt;I'm inheriting a very old IIS box...it's been thru a number of different masters and has lots of files no longer in use intermixed with active files. &lt;/P&gt;&lt;P&gt;I can produce a listing of pages served by IIS and files found via FS...I bet there's a drop dead easy way&amp;nbsp; to do something like 'select name where [FSFiles] NOT IN [IISFiles] directly instead of importing both lists to tables and running from there.&lt;/P&gt;&lt;P&gt;I'll bet a beer there's a drop dead easy way.&lt;/P&gt;&lt;P&gt;[thankx for the tool...already owe the auther a 6pack.]&lt;/P&gt;&lt;P&gt;--steve...&lt;/P&gt;</description></item><item><title>RE: View the size,name and Path of a directory</title><link>http://forums.iis.net/p/1145856/1855059.aspx#1855059</link><pubDate>Fri, 19 Jan 2007 16:26:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1855059</guid><dc:creator>LogParser User : Jeff</dc:creator><cs:applicationKey>input_formats-51</cs:applicationKey><description>&lt;P&gt;My implementation is slightly different:&lt;/P&gt;&lt;P&gt;select&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; extract_token(path,add(1,strcnt('%CD%','\\')),'\\') as dir,&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(size) as sumsize &lt;/P&gt;&lt;P&gt;from &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '%CD%\*' &lt;BR&gt;where&amp;nbsp;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name not in ('.';'..')&lt;/P&gt;&lt;P&gt;group by &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dir &lt;/P&gt;&lt;P&gt;order by &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sumsize &lt;BR&gt;desc&lt;BR&gt;&lt;/P&gt;&lt;P&gt;Note, if you save it as a file you have to call it like:&lt;/P&gt;&lt;P&gt;logparser -i:fs file:getdiskspace.sql?CD=%CD%&lt;/P&gt;&lt;P&gt;(%CD% isn't a real environment variable - so Log Parser can't find it)&lt;/P&gt;</description></item></channel></rss>