Tuesday, June 20, 2006

Computing.Net - A batch file for rename

Computing.Net - A batch file for rename
You can do a substring in a batch file in the following way:
echo %filename:~3,9% - this will echo the variable filename starting at character 3 and going through character 9

This can be combined with the for /f command or a utility like fart.exe to do some really neat stuff :)

No comments:

Scripting out existing database mail configuration

SQL Server Central Artical on Scripting out Existing database mail configuration I wanted to save this here so I can easily find it. Sorry ...