I recently needed to attach current timestamp to the names of some files. Following was the batch script I came up with to perform the task.
@echo off
set timestamp=%date:~10,4%%date:~4,2%%date:~7,2%%time:~0,2%%time:~3,2%%time:~6,2%%time:~9,2%
ren %1 %timestamp%%1
@echo on
//TODO: Option to rename all files in a directory
//TODO: Option to read file names to be renamed from a text file
Coming from the world of Vi, I prefer the incremental search over usual Ctrl + F search dialog. Didn't know it existed in VS till now. It comes out that pressing Ctrl + I in VS 2005 puts the editor in incremental search mode. To go to next match, simply press Ctrl + I again and to go to previous match, press Ctrl + I while holding down the shift key. To exit this mode, press the return key <update>you can press any key to exit this mode</update>.
Prime numbers are one of my personal favourites. Being a programmer, I am also interested in implementing and examining different prime number concepts using some programming language.
In the days to come I will write a small series of posts on prime numbers on Geeks With Blogs.