• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

vbs script to list files in a directory and email results

S

systemtek

#1
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 Computer

P

Pegasus [MVP]

#2
"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 Computer

Users Who Are Viewing This Thread (Users: 1, Guests: 0)