19 Mar |
DOS: creative WAIT command![]() ![]() |
Maybe you’ve encountered this before: there is no direct way to add a simple command like WAIT x seconds in DOS. While forging an easy solution for a simple task, I’ve found a nice, create way of solving this:
PING 1.1.1.1 -n 1 -w 25000 >nul
Yes, indeed. The PING-command is used to wait.
A few additional explanations:
- The IP adress 1.1.1.1 refers to your first network device/card, so this adress should in most cases be available to your system.
- The additional parameter
-n 1
sets the numbers of pings to 1. - The parameter -w is the wait duration, keep in mind these are miliseconds, so the value 25000 actually stands for 25secs.
>NUL
pipes the standard output stream to the null-device, so every entries or responses to this stream are accepted and forgotten.
Of course, usually I try to avoid using a WAIT-operation in scripts at all, and this ain’t a very exact technique. It simply does the job for most tasks where a WAIT-command might be required.
19 Jan |
Otherland: In cinemas soon?![]() ![]() |
An article indicates that a tiny film company named Warner is starting to work on a movie adaption of Otherland, the great science fiction epic by Tad Williams. Brave!
11 Nov |
11.11.11![]() ![]() |
Tolles Datum: 11.11.11
Noch Fragen!?
28 Sep |
visualizing sorting algorythms![]() ![]() |
The development of sorting algorythms may look for non developers a little bit like black magic, but it should be basic knowledge for a coder.
A nice, coffescript-based page visualizing that sometimes very dry topic can be found here:
30 Jun |
IT-Weisheiten im Juni![]() ![]() |
Weisheit 1:
Falls Flash-Anwendungen im Firefox den Browser reproduzierbar zum Absturz bringen, sollte man prüfen, ob in der Flashkonfiguration die Hardwarebeschleunigung aktiviert ist.
Weisheit 2:
Falls die Authentifizierung von Clients einer einfachen Windows-Heimnetzgruppe nicht funktioniert, könnte es auch daran liegen, dass die Systemzeit der Clients voneinander abweichen.
Weisheit 3:
VPN-Probleme können durchaus auch durch einen alten Router ausgelöst werden.