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:

The Database is not accessible after creating Always On Availability Group

 Having created a fully functional SQL Server Always On Availability Group, I connect using SSMS. Upon trying to expand the database, I get ...