« Previous Next »

Thread: List all files

Last post 10-22-2009 12:05 PM by ksingla. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 10-19-2009, 9:32 AM

    • hg363
    • Top 100 Contributor
    • Joined on 09-04-2007, 3:44 PM
    • Posts 54

    List all files

    Hi I have this script which I slightly adapted from MS.

    Set objLogParser = CreateObject("MSUtil.LogQuery")
    Set objInputFormat = CreateObject("MSUtil.LogQuery.FileSystemInputFormat")
    objInputFormat.Recurse = 0

    Set objOutputFormat = CreateObject("MSUtil.LogQuery.DataGridOutputFormat")

    strQuery = "SELECT Name, CreationTime FROM '\\192.168.204.220\c$\Documents and Settings\gw310\Favorites\*.*' " & "WHERE NOT Attributes LIKE '%D%' ORDER BY CreationTime"
    objLogParser.ExecuteBatch strQuery, objInputFormat, objOutputFormat

    ====================================================================

    It does work, however it does not list the files within folders that have been created within the FAVORITES folder.

    So essentially what I need is a solution that will list all the files even if they are within a sub-folder which sits within the FAVORITES folder

    Can some one please show me how this can be achieved, regards HG363


     

  • 10-20-2009, 6:50 PM In reply to

    • ksingla
    • Top 25 Contributor
    • Joined on 06-14-2006, 3:02 AM
    • Redmond, WA
    • Posts 863

    Re: List all files

    Hi,

    Setting objInputFormat.Recurse to 0 disables recursion. You should set it to -1 so that logparser performs unlimited recursion.

    Thanks,
    Kanwal

    Follow me on twitter at http://twitter.com/kjsingla
  • 10-22-2009, 10:45 AM In reply to

    • hg363
    • Top 100 Contributor
    • Joined on 09-04-2007, 3:44 PM
    • Posts 54

    Re: List all files

    Hi Kanwal. Once again thnak you for your prompt reply.

    Would you possess any valuable examples to perform PC forensics on Windows PC's. If so would you kindly share some with me?

  • 10-22-2009, 12:05 PM In reply to

    • ksingla
    • Top 25 Contributor
    • Joined on 06-14-2006, 3:02 AM
    • Redmond, WA
    • Posts 863

    Re: List all files

    Hi,

    I am not knowledgeable about PC forensics and can't offer any examples. Apologies.

    -Kanwal-

    Follow me on twitter at http://twitter.com/kjsingla
Page 1 of 1 (4 items)
Microsoft Communities