Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Command line progress bar

 
Logged in as: Guest
arrSession:exec spGetSession 2,16,28870
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> Post a VBScript >> Command line progress bar
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Command line progress bar - 12/9/2005 8:01:39 AM   
  kirrilian


Posts: 628
Score: 3
Joined: 3/15/2005
From:
Status: offline
had a need for this today so I wrote it,
I put this in my loops i want to check the progress of,

dim progress
'clear the variable before starting
progress = ""
for each blah in blabbity
progress = progress & "."
'WScript.stdout.write doesnt add a newline so its a continuous line of dots
WScript.StdOut.Write progress
next

make sure youre using cscript or you'll be clicking ok alot lol

_____________________________

Have you searched here ?
VBScript Fundamentals
My Site
 
 
Post #: 1
 
 RE: Command line progress bar - 12/13/2005 8:34:03 AM   
  csamuels


Posts: 42
Score: 0
Joined: 9/26/2005
Status: offline
quote:

you'll be clicking ok alot lol


spacebar works too

(in reply to kirrilian)
 
 
Post #: 2
 
 RE: Command line progress bar - 12/15/2005 5:53:44 AM   
  ebgreen


Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
A WScript.exe safe version:

dim progress
'clear the variable before starting
progress = ""
for each blah in blabbity
    progress = progress & "."
    'WScript.stdout.write doesnt add a newline so its a continuous line of dots
    If LCase(Split(WScript.FullName, "\")(UBound(Split(WScript.FullName, "\")))) = "cscript.exe" Then
        WScript.StdOut.Write progress
    End If
next

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to csamuels)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> Post a VBScript >> Command line progress bar Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts