Windows Vista Forums

vbs script to list files in a directory and email results

  1. #1


    systemtek Guest

    vbs script to list files in a directory and email results

    Hi.

    Been trying to write something with out any luck. Im looking for a
    script that will look in a given directory (i.e. c:\mydata) and e-mail
    details of what files are in that directory, the details needed are
    file names, date modified and size.

    Anyone got any sample scripts ?



    Thanks

      My System SpecsSystem Spec

  2. #2


    Pegasus [MVP] Guest

    Re: vbs script to list files in a directory and email results



    "systemtek" <duncan@newsgroup> wrote in message
    news:8c076e3d-9231-452b-8700-fd6227eb9bc8@newsgroup

    > Hi.
    >
    > Been trying to write something with out any luck. Im looking for a
    > script that will look in a given directory (i.e. c:\mydata) and e-mail
    > details of what files are in that directory, the details needed are
    > file names, date modified and size.
    >
    > Anyone got any sample scripts ?
    >
    > Thanks
    Let's have a look at what you've go so far. Alternatively, if you are not
    familiar with VB Scripts, consider using this batch file:
    @echo off
    dir "c:\MyData" > c:\Dir.txt
    blat c:\Dir.txt . . .

    You can download blat.exe from a number of sites.


      My System SpecsSystem Spec

vbs script to list files in a directory and email results

Similar Threads
Thread Thread Starter Forum Replies Last Post
Attach all files in directory to email? PAkerly VB Script 7 29 Dec 2009
Script to list open files Keith VB Script 3 12 May 2009
How to list all files under a directory? goorambatman Vista General 3 12 Nov 2008
Creating a list of files that have been deleted from or added to a directory hrh1818 PowerShell 5 11 Oct 2007
rename all files from a directory to a list of files ... show3r@gmail.com PowerShell 4 25 Aug 2007