Bookmark and Share Chat with us on Live Messenger Chat with us on Skype Follow iServices Facebook Profile of iServices MySpace Profile of iServices LinkedIn Profile of Jesse Grobstein LinkedIn Profile of Carla Narciso Login to i Services Private Server
Ninja Mascott We've arrived, and to prove it we're here

    Welcome to our blog!

           Bookmark this page and visit regularly to check for new content and free software recommendations!
« NOW CERTIFIED!!!Check if remote server is online and include file. »

VBScript to copy/backup files...

04/02/09

Permalink 09:09:55 am by i Services, Inc., Categories: Scripts and Codes , Tags: backup, copy, files, vbscript

This simple VBScript can be very useful if you have files that need to be constantly copied to another machine or location. You can add as many files as you like and even copy a file to multiple locations:

Code:
Dim FSO
Set FSO = CreateObject("Scripting.FileSystemObject")
FSO.CopyFile "C:\path\to\file.ext", "S:\path\to\destination\file.ext", true


The very last line of code has 3 arguments:
1) The destination and file that will be copied.
2) The destination and filename that will be created.
3) "true" allows for file overwrites, the default value is false so just remove this argument if you do not wish to overwrite existing files.

 

3 comments

Thanks for this!
05/11/10 @ 10:54
The topic covered is very well done. I was referred here by a friend, thanks to him i bookmarked along with http://www.rapidmediafire.com/Rise+of+the+Gargoyles+2009+DVDRip+XviD-ViSiON.html which has some good topics.
08/09/10 @ 16:36
Yeah, i much agree with you on this. Theres a comprehensive review http://www.rapidsloth.com/Mesrine-LInstinct-De-Mort-(2008).html where tey talk about it.
08/26/10 @ 02:12

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)

A place for us to post information and keep our visitors informed.

Search

XML Feeds


free blog tool


Home  |   Services  |   Portfolio  |   Our Blog  |   About Us  |   Contact Us
© Copyright 2006 - 2010. i Services, Inc. All rights reserved.