Posted by Jason Mohan on Jul 1st, 2009 | 0 comments

Need to delete old files based on how old the file is? Need to do in a batch file? Well there’s a great program developed by these guys http://winhlp.com/node/386. Only thing is you need to have java loaded on the machine you are running the command from. The program is accessible via command line and all you need is the below command. The last number in the command is how many days old....
Posted by Jason Mohan on Mar 13th, 2009 | 0 comments

Ever have a html code, or something in a asp or php code that needed to be changed however the expression changes just enough that find and replace won’t work unless there is a wildcard feature? Well there is. I didn’t know what it was until recently when I had to change something on a project. Below is the example.
Find
jason.php?id=7
jason.php?id=9
jason.php?id=10
Replace...
Posted by Jason Mohan on Mar 6th, 2009 | 0 comments

There are times when you want to update the policy, and then don’t want to wait for the policy to take affect on the computer. Also sometimes you are not sure what policy is being applied to the computer or user. These two commands will help you save a lot of time.
gpupdate – This will refresh the policy on the current computer. I usually use it with a /force /sync switch. It will...
Posted by Jason Mohan on Jan 26th, 2009 | 2 comments

Openfiler is a free open source san built on linux, with a web management interface. If you ever wanted to share storage between systems in the past you would need to buy a EMC type device and spend at least $50,000 – $100,000. Now you don’t with openfiler (www.openfiler.com), all you need is some hard drives, a decent cpu, and some memory and that’s it. You can build your own...
Posted by Jason Mohan on Dec 22nd, 2008 | 0 comments

The below command will allow you batch file to sleep, or be delayed for so many seconds. There are other sleep utilities out there, but if you don’t want to load another piece of software, or just need something quick to delay a command this will work. The below is a 5 second pause.
ping 1.1.1.1 -n 1 -w 5000...