Computing.Net > Forums > Disk Operating System > Edit file in batch program

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Edit file in batch program

Reply to Message Icon

Name: Chonn
Date: September 24, 2003 at 13:23:01 Pacific
OS: XP
CPU/Ram: 2.8Ghz/256MB
Comment:

Hey all thanks for taking a look at this...
I am creating a batch file that copies 4 files (1 Executable) and 1 folder to individual drives. One of the files needs to be edited in order for the program to work. The 1 file that is edited needs to corespond to the drive letter that it has been copied to. I would like to do this in the batch file. I already have the copy structure written but I don't know how to edit the file in the batch program and then save it. Any comments and help are appreciated...



Sponsored Link
Ads by Google

Response Number 1
Name: Nathan
Date: September 24, 2003 at 15:45:40 Pacific
Reply:

i didn't read into it but i think this is what you need.

@echo off
echo (file content here)>(filenamehere.ext)

i tried. hit me back if i'm wrong.


0

Response Number 2
Name: chonn
Date: September 26, 2003 at 10:58:19 Pacific
Reply:

Thanks for the response. What you posted would erase the contents of the file I am trying to edit. I am trying to edit one line of it.


0

Response Number 3
Name: DaveHo
Date: October 30, 2003 at 04:06:43 Pacific
Reply:

Go to http://files.danen.org/h/ut/batch.shtml and get cutpak11.zip. In here is a utility called xchange.exe, which should do what you want as long as you know the existing string and the replacement string.
All the above is freeware
HTH


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


bat file to del file afte... timers in win98 DOS



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Edit file in batch program

keybd input 2 text file in batch www.computing.net/answers/dos/keybd-input-2-text-file-in-batch/14315.html

Telnet through batch program. Urgent!!! www.computing.net/answers/dos/telnet-through-batch-program-urgent/10218.html

Batch file processing www.computing.net/answers/dos/batch-file-processing/16923.html