Search found 1 match
- 29 Jun 2017 11:46
- Forum: DOS Batch Forum
- Topic: Get next 4 chars after the substring
- Replies: 1
- Views: 1837
Get next 4 chars after the substring
@echo off set hr=%time:~0,2%%time:~3,2% set hr=%hr: =0% @echo on fart Test.txt HHmmXXXX HHmm%hr% I want to run a batch that finds and replaces something in the Test.txt file. I dont mind if it can be done without the fart utility but I use it since i dont know if I can do it without it. I have a str...