View Single Post
Old 06-18-2009   #3 (permalink)
Joe Fawcett


 
 

Re: coping jpg files from computer help


"Pegasus [MVP]" <news@xxxxxx> wrote in message
news:uUDbIXA8JHA.2656@xxxxxx
Quote:

>
> "keeping" <guest@xxxxxx-email.com> wrote in message
> news:ff1036493a10cd0aff0407e83bc8d001@xxxxxx-gateway.com...
Quote:

>>
>> Hello All,
>> I am very green with VBS, so i appologize in advance. I am trying to
>> figure out how to write a VBS to scan a particular extension (i.e. *.jpg
>> or *.doc) on my entire hard drive (C including subfolders and copy
>> them to a single folder on the computer or a USB drive. i want to be
>> able to change the extension as needed or if it is possible be able to
>> copy multiple extensions, also a completion message would be really
>> nice. Hopefully this is possible.
>> Thanks in advance
>>
>>
>> --
>> keeping
>
> Is your aim to just copy the files (in which case a batch file would be a
> quick and easy solution) or to learn about VB Scripting (in which case I
> recommend that you download the help file script56.chm from the Microsoft
> site). This file contains all the basic VB Script functions and methods,
> complete with examples.
>
Specifically look at FileSystemObject and GetFolder together with the
SubFolder and the Files collections.
Remember to exclude the folder you are copying to from the search or things
may go pear shaped

--

Joe Fawcett (MVP - XML)
http://joe.fawcett.name

My System SpecsSystem Spec