Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi guys im trying to make a batch Open a text
doc and edit what it says in it and i need it to
have choices please help

@echo off > newfile & setLocal enableDELAYedexpansion
set /p old= old txt ?
set /p new= new txt ?for /f "tokens=* delims= " %%a in (myfile) do (
set str=%%a
set str=!str:%old%=%new%!
>> newfile echo !str!
)
=====================================
Helping others achieve escape felicityM2

If i give you the names of the folder and the folder location can
you make the coding for me and i make the batch

Not quite clear but if the file is not in the same directory as the batch, add this as your second line:
pushd c:\myfiles
=====================================
Helping others achieve escape felicityM2

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |