Emacs syntax highlighting for PHP and AutoIT

After installing Emacs from http://www.gnu.org/software/emacs/, copy those two files below to your "%AppData%\.emacs.d" directory:

Edit the "%AppData%\.emacs" file and add the following lines:

(global-font-lock-mode 1)
(add-to-list 'load-path "~/.emacs.d")
(require 'php-mode)
(setq auto-mode-alist
(append '(("\\.php$" . php-mode)
("\\.module$" . php-mode))
(require 'au3-mode)
(setq auto-mode-alist
(append '(("\\.au2$" . au3-mode)
("\\.au3$" . au3-mode))


Process execution timing in MS DOS cmd.exe batch file


Imagine that you are running a process that takes a long time to perform (eg. build, code generation, maintenance batch, file transfer, etc.) and that you want to see how long it takes. You can use the idea from the sample below. I used a simple "sleep" command in place of a real process, but I believe that you will get the idea.

Usage: In order to use the "timediff" command add the two files
timedff-calc.bat and timediff-sub.bat
to a directory that is in your PATH environment variable (eg. "C:\bin").


Consider also adding the following batch script to your toolbox:


Last but not least, please see the timediff-test.bat file for sample invokations and formats supported: