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 :)

Comments

Popular posts from this blog

Detecting Transaction Isolation Level through Profiler Trace and other means on MS SQL Server 2005

Regular Expressions in SQL Server, DB2 UDB, and Oracle