Jump to content

Recommended Posts

Posted

Does anybody have a pause utility that can be minimized or run in the background unseen upon execution

pause.exe 30

I have tried

cmd /c ping 127.0.0.1 -n 40>nul

but have no way of minimizing the window (start cmd wont work for me)


Posted

Use a vbscript to run the ping command. Copy and Paste the code below in a .vbs file.

Set objShell = CreateObject("Wscript.Shell")
objShell.Run "cmd /c ping 127.0.0.1 -n 40", 0

Posted

WSH 5 and later:

Sub Pausa(Segundos)
  WScript.Sleep (Segundos * 1000)
End Sub

Earlier versions (later and anytime too):

Sub Pausa(Segundos)
  Hasta = DateAdd("s", Segundos, Now)
  Do While Hasta > Now
  Loop
End Sub

I lost my VBS skills, only Copy and Paste skills remains, so don't ask me if the last routine has the midnight bug or not, I think not but I'm not sure anymore.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...