Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Informative message vbscript

Posted on 2012-09-12
Medium Priority
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

Gary earned 800 total points
ID: 38391529

Author Closing Comment

ID: 38391638

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Measuring Server's processing rate with a simple powershell command. The differences in processing rate also was recorded in different use-cases, when a server in free and busy states.
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
Suggested Courses

571 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