The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,682 other followers

Archive for December 13th, 2013

Different ways of sleeping/waiting in batch files

Posted by jpluimers on 2013/12/13

About a year and a half ago, I wrote about a Batch file to “Keep Alive” a CMAK generated VPN connection in Windows 7.

It uses ping to wait a certain amount of time, but it has the drawbacks of

  • requiring TCP/IP to be installed (which some headless systems don’t).
  • using N+1 as the number of seconds

Since then, I learned that since Windows Vista and up has timeout command that just waits:

timeout /t 600 /nobreak

Two parameters are used:

  • /nobreak
    does not stop waiting when you press a key
  • /t #
    waits # seconds

(the example is 10 minutes, I use it to regularly run FlushFileCache.exe or FlushMem.exe to empty the Windows file chache and release memory – often more than a gigabyte – back to Windows)

There is also sleep.exe, but that requires the Windows Resource Kit or Windows Server 2000/2003.

–jeroen

via:

Posted in Batch-Files, Development, Power User, Scripting, Software Development, Windows | Tagged: | Leave a Comment »

When your 2nd (touch) screen “clicks” on your 1st (non-touch) screen (Windows 7 tip,via André Mussche – Google+)

Posted by jpluimers on 2013/12/13

Glad I found back this G+ post by André Mussche:

20130206, 09:12 –  Public

TIP: I got a 2nd screen with touch (on Win7), however default when touching the second screen it “clicks” on the main (1st) screen. Using “Tablet PC Settings” I got this switched to the correct 2nd screen.

http://ava.co.uk/support/faq/general/touch-screen-show-as-not-supporting-touch-how-to-install-a-2nd-touch-screen-on-windows-7.aspx

I had exactly the same problem, and this solved it.

–jeroen

via: André Mussche – Google+ – TIP: I got a 2nd screen with touch (on Win7), however….

Posted in Power User, Windows, Windows 7 | Leave a Comment »

 
%d bloggers like this: