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:

DBA Categories from Brent Ozar

Brent Ozar shared a post on the categories for a SQL Server DBA. NOTE that these overlook things like BI or data scientist professionals, w...