First post, by keropi
- Rank
- l33t++
Hiya!!!
does such a program exists? Let me explain what I want to do... 😅
I am trying to make a batch file that will edit a variable in a text file , the variable depends on the location of the .bat file...
so for example if I have: c:\test\varedit.bat , it would open a file , look for a predefined string like %EDITME% and change it to C:\TEST\
I know I can get to a dos variable the current .bat file location with %~dp0 , but how to make %~dp0 replace the %EDITME% string in my file?
any pointers would be highly appreciated! 😁