![]() |
| This is a program I pieced together at work one afternoon.We start off with two batch files, mikey.bat and mike.bat as you can see here. |
The purpose of this program is just to show a cool effect of making me seem like a computer whiz on my calls, not that im not one already :)
So one thing I commonly do when troubleshooting these computers is to clear cache in cmd prompt. To automate the process I create a batch file that performs all the commands for me.
ipconfig /flushdns
RunDll32.exe InetCpl.Cpl,ClearMyTracksByProcess 4351
javaws -Xclearcache
javaws -uninstall
Above is the bare bones batch file. To add some splunk to it I thought itd be cool to make it look like the matrix is running when I run the file. So in discovering how we ought to go about doing this let's start off with how do we make it look like the matrix?
To do that we start off with this batch file mike.bat
mike.bat will loop the matix file making it look like so...
Next we need to figure out how to implement the clear cache batch file into the matrix loop. To do that we use mikey.bat as can been seen below...
Nice! now we are ready to run the processes. When you run mikey.bat it lauches the matrix batch and runs the clear cache commands at the same time. After the commands have ran, a timer starts after which command prompt closes and you have succeeded in amazing the client with your savvy computer skills!




No comments:
Post a Comment