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 Forum
Attach all files in directory to email?
Is it possible to use VBScript to attach all files with a particular extension to an email? How could this be done?
VB Script
Script to list open files
I am having trouble getting the following script from the Scripting Guys to run on my SBS2003 Premium server: Set objConnection =...
VB Script
How to list all files under a directory?
Ok when I was using Windows XP and I wanted to list all files in a folder and sub folders I would just do a search with the search field blank on...
Vista General
uploading script results to a csv file
You can try Export-Csv: Get-QADGroupMember Get-QADGroupMember 'domain\group name' | Export-Csv -path pathToFilename.csv ----- Shay Levi...
PowerShell
Re: checking for results when executing a script
Try: if (!$status) {"nothing"} else {$status} -- Kiron
PowerShell
Creating a list of files that have been deleted from or added to a directory
In Powershell if I have the following two arrays: $a = 'file1', 'file2', 'file3' $b = 'file2', 'file3', 'file4' The operation $a - $b produces a...
PowerShell
rename all files from a directory to a list of files ...
hi, what is a script to rename files like track 01a.mp3 track 02a.mp3 track 03a.mp3 track 04a.mp3 ....
PowerShell