DIGIT-ARC read-only archive · snapshot: July 23, 2026

find and replace dos batch

1 post · originally from https://geek.digit.in/community/threads/find-and-replace-dos-batch.150864/

A
abhayalmighty Original post #1
Jan 3, 2012 at 8:51 PM
suppose i have a file a.txt which contains:
D:\Doc\Abhay\bat

i want to change this to
D:\Doc\Abhay\

plz write an .bat file for this. I have no idea how to write batch files. I googled it, found some answers too but couldn't understand anything. plz give me complete code start to end