Monday, December 26, 2005

Slow down a batch file - with no CPU hit

I had to put this together for a customer runing a Citrix server that needed a pause to map a drive but need to give the icon to the Citrix users desktop. Well a batch file will hit the cpu to 100% with the choise or other command, so here is a VSB/WSH self contained batch file.

@echo off


if exist I:\ goto runapp
echo searchfile I:\

echo sleeping...
echo Wscript.Sleep 5000> M:\sleep.vbs
start /w wscript.exe m:\sleep.vbs
del m:\sleep.vbs

goto searchfile

Start "My Sepecial App" M:\WINNT\SYSTEM32\Cmd.exe /c U:\xpfalcon.exe


Tis the silly season, time to read a DNS/BIND book.

No comments:

Blog Archive