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!
    visit volcanoecigs.com for the best eCig starter kits and accessories on the web
« 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.

 

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

User tools

Advertisements

Search

XML Feeds


free blog tool



Home  |   Services  |   Portfolio  |   Our Blog  |   About Us  |   Contact Us

© Copyright 2006 - 2012. i Services, Inc. All rights reserved.