Replace text string using batch file
I have created batch file to change the varible name in to different format. Now i want to replace a character in a textfile and variable in batch file. If suppsoe = $/Batch Project: is the first line in text file. So is that possible to replace that : (colon) by slash (/).
Re: Replace text string using batch file
Code:
C:\>set var== $/Batch Project:
C:\>echo %var:~0,-1%
= $/Batch Project
C:\>set newpath=%var:~0,-1%/
C:\>echo %newpath%
= $/Batch Project/
Code:
C:\>echo = $/Batch Project: | sed "s/:/\//"
= $/Batch Project/
Re: Replace text string using batch file
Flash Renamer renames many files at once by applying rules such as case convert, sequential numbering & seach/replace.
Download Flash Renamer 6.20.5