How can a text file be edited from a Windows batch file?

Posted by Thai on Stack Overflow See other posts from Stack Overflow or by Thai
Published on 2010-06-03T03:44:21Z Indexed on 2010/06/03 3:54 UTC
Read the original article Hit count: 163

Filed under:
|

I am trying to make a .bat file to edit the redirect of index.asp to the filename of the file selected.

I know how to replace the file:

@echo OFF
del/q D:\e-lib\index.asp
copy %1 D:\e-lib\index.asp

but not how to edit the contents.

© Stack Overflow or respective owner

Related posts about Windows

Related posts about batch-files