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:

Creating Hash Values for Strings In MSSQL, DB2 UDB for LUW, and Oracle

It will often occur that we need to search a large character string in a relational database, something like an email address, postal addres...