• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 379
  • Last Modified:

Informative message vbscript

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
1 Solution
fantamenAuthor Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now