Check system is busy



  • 1. Div object
    Hi Can i show only vertical scroll in Div object ? Thanks
  • 2. Obtaining complete page URL from vbscript
    I need to obtain the domain from server side code. Request.Servervariables("URL") doesn't work well... it miss the domain name. I tried to use the WScript.NetWork object but the domain is not visible. Help me please!! Thanks. Mark
  • 3. Runas
    Hello, is there a better way to pass the password to a running runas process than using appactivate and sendkeys ? sub ShellRunas(sCmd, sPw, iStyle) Dim oShell Set oShell = CreateObject("WScript.Shell") sCmd, iStyle, false do while not oShell.AppActivate("runas.exe") call wait(100) loop oShell.SendKeys sPw & "~" call WaitUntilFileOrSec(sOutFile,10) set oShell = Nothing end sub The AppActivate dosn't work properly everytime. It happens that the Application isn't activated. Best Regards Clas -- The light at the end of the tunnel, was switch off due to high costs.
  • 4. Flashing Table Rows
    Hi I have a table, displaying data from a DB, and under a certain condition, the row is highlighted, see below for sample code: <% IF rstSimple.Fields("Calls Queued Now").Value = 0 THEN %> <TD><P ALIGN=left><FONT FACE=Arial SIZE=1><%= rstSimple.Fields("SkillGroup").Value %></FONT></P></TD> <% ELSE %> <TD BGCOLOR = red><P ALIGN=left><FONT FACE=Arial SIZE=1><%= rstSimple.Fields("SkillGroup").Value %></FONT></P></TD> <% END IF %> Is there a way, in which I can get the row to flash aswell? -- Kind Regards Rikesh (V.InterDev6.0-SP5/W2K-SP4/SQL2K-SP3)
  • 5. Replacing Shut Down...
    Does anyone know if I could replace the "Shut Down..." button in the Start menu with a my own shortcut that points to a VBScript that will restart the computer? If so, how do I do it? What I need to do is prevent the user from being able to shutdown the PC. With the NoClose option, the user also loses the capability to restart the PC which we would like them to have. I have to provide a script that will give them that option. I would like to have the "Shut Down..." button run my script Thanks in advance Rus

Check system is busy

Postby VmlqYXkgS290aWFu » Tue, 11 Sep 2007 16:36:02 GMT

In VB to check system i put the following command

Do While .busy: DoEvents: Loop
Do While .ReadyState <> 4: DoEvents: Loop

How the same can be done in VB Script?  

Thank you.

Re: Check system is busy

Postby Michael Harris (MVP) » Wed, 12 Sep 2007 00:49:32 GMT

Assuming this is simple WSH hosted VBScript doing IE automation...

'...with block assumed
Do While .busy: WScript.sleep 10: Loop
Do While .ReadyState <> 4: WScript.sleep 10: Loop
'...end with assumed

Michael Harris
MVP - Windows Server Admin Frameworks

Similar Threads:

1.check if I am reinventing the wheel?


I have 2 dataviews for 2 tables, Master and Detail.  I 
filter dataview1 on a name field which gives me say 2 rows 
with 2 ID's (ID field).  Detail table contains 2 rows with 
first ID and 2 rows with 2nd ID.  Here is what I do to 
filter the Detail dataview on these 2 ID values:

For i As Integer = 0 to dataview1.Count - 1
 strCriteria = strCriteria & dataview1(i).Item
strCriteria = Microsoft.VisualBasic.Left(strCriteria, 
StrCriteria.Length - 1)  'get rid of last comma
dataview2.RowFilter = "ID In (" & strCriteria & ")"

Note:  The App's Dataset1 contains Master and Detail 
tables and these 2 tables are joined on ID with 
constraints set, etc.  Can I use the constraint in 
Dataset1 to filter dataview2 (detail) or am I OK with the 
routine above?  How?


2.I am new to VBA and am stuck

3.Checking System Information with ActiveX ?

4.How to check system default browser?


I need to open a .xml file with system default browser.
But whenever I open the file using Process.Start, it will open the default 
program that handles .xml.

Anyone knows how to detect the default browser so I can use it to open the 


5.Backup up system state with NTbackup through a VB script (I need error checking)

I am currently backing the system state on various machines with
ntbackup that is launched through a VB script. The script also sends
e-mails when its completed. What I need to do is add code that does
error checking for when ntbackup fails.Instead of sending an e-mail
when it completes I need to change it to send one when it fails. Does
anyone have any code out there that does that? Any help would be


6. How to Check a Printer is connected to a system from VB.

7. Checking available system resources

8. Check version of Software/Operating system/Drivers

Return to vbscript


Who is online

Users browsing this forum: No registered users and 45 guest