Solved

Wscript/VBScript - how to write an "echo" that disappears after a while (no OK or Confirm button) like a progress bar

Posted on 2007-04-05
8
1,703 Views
Last Modified: 2013-11-25
Hey experts -
Quick question. I created a windows script to run across a bunch of computers on the network and delete symantec. The status of everything is stored in a log file. Everything seems to work great, the only problem is when I run it, I have no idea what the progress is. Nothing is shown on the desktop or in command prompt. It's all being done in the background. I'd like to create either a quick pop up that displays computer name that goes away by itself once it's done.

Right now I've been using Wscript.Echo "Computername is being scanned"
But I don't want to have to click OK or Confirm or whatever whenver it comes up. I just want it gone when it's done. Is there some kind of command equivalent to this? Hope my question is clear
~ thanks
0
Comment
Question by:ThinkPaper
  • 5
  • 2
8 Comments
 
LVL 67

Accepted Solution

by:
sirbounty earned 250 total points
ID: 18857643
Dim objShell: Set objShell=CreateObject("Wscript.Shell")
objShell.Popup "This message will disappear in 5 seconds", 5
0
 
LVL 67

Expert Comment

by:sirbounty
ID: 18857653
Or, if I've misunderstood, let me know...
This would show the computer name...if you don't have that

Dim objNet:Set objNet=CreateObject("Wscript.Network")
ComputerName=objNet.ComputerName
0
 
LVL 67

Expert Comment

by:sirbounty
ID: 18857655
So,
objShell.Popup ComputerName & " is done!", 5

should display a 5 second message...
0
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 16

Author Comment

by:ThinkPaper
ID: 18857694
Ah sweet! I was trying to google for it but didn't even know what to google for. Thanks!
0
 
LVL 67

Expert Comment

by:sirbounty
ID: 18857711
Happy to help - thanx! :^)
0
 
LVL 16

Author Comment

by:ThinkPaper
ID: 18857716
One thing.. I guess there is no way to hide the OK button, huh?
0
 
LVL 67

Expert Comment

by:sirbounty
ID: 18860565
Sorry, no - I don't believe so...
0
 
LVL 26

Expert Comment

by:Pber
ID: 18860619
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
How to record audio from input sources to your PC – connected devices, connected preamp to record vinyl discs, streaming media, that play through your audio card: Vista, Windows 7, Windows 8, Windows 8.1 and Windows 10 – both 32 bit & 64.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

803 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