Informative message vbscript

Posted on 2012-09-12
Last Modified: 2012-09-12
I've created a simple script (.vbs) that copy a local folder to a remote server. This is the source code example:

Const OverWriteFiles = True
' Imposto un drive mappato sulla destinazione in rete.
Set objNet = CreateObject("WScript.Network")
objNet.MapNetworkDrive "L:", "\\\Share",,"Pippo", "*****"
' Eseguo la copia.
Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.CopyFolder "C:\Uff_Comm", "L:\", OverWriteFiles
' Annullo il drive creato in precedenza.
objNet.RemoveNetworkDrive "L:"
' Avviso di fine copia.
msgbox "Copia eseguita!", 0, "Cartella UffComm del disco C:"

The operation can take some minutes. I would like to show a message look like "Coping...." during the copy and cancel it automatically at the end. It's possible? How?

Thanks a lot
Question by:fantamen
    LVL 58

    Accepted Solution


    Author Closing Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    This tutorial will discuss the log-in process using WhizBase. In this article I assume you already know HTML. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you might look at some of my other articles abo…
    In this tutorial I will show you how to provide a dynamic RTF document on your website generated with data from your database. For this tutorial you will need Microsoft Word or WordPad, WhizBase and Microsoft Access. In this tutorial I will show …
    Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
    The viewer will learn how to dynamically set the form action using jQuery.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now