Computing.Net > Forums > Database > replacing the string using bat file

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.

replacing the string using bat file

Reply to Message Icon

Name: vikram86
Date: January 14, 2009 at 20:56:40 Pacific
OS: Windows XP
CPU/Ram: P4
Product: Dell / desktop board / Dell gx620
Subcategory: General
Comment:

Hi,
i've a following question on Batch Programming.

I've a several sql script files which is generated while installing oracle11g.

In Some of the queries or script files i've "set echo on".

so, i need one batch file which replaces "set echo on" with "set echo off" in all the sql scripts in that folder.

I need batch file to replace text in windows environment.

Please help me...

Thanks in advance...

vikram



Sponsored Link
Ads by Google

Response Number 1
Name: orange
Date: January 20, 2009 at 13:00:15 Pacific
Reply:

I haven't found any batch search and replace that seem useful. There are references to other scripting languages.
What other programming options do you have?

Something like Word. Or Access ???

You have to read each script file, determine if the string exists,
if it does replace it then go to the next script file.
if it doesn't exist go to the next script file.
Do this until all scripts have been processed.


0
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Database Forum Home


Sponsored links

Ads by Google


Results for: replacing the string using bat file

Number of strings using vbs file? www.computing.net/answers/dbase/number-of-strings-using-vbs-file/554.html

editing text in .txt file via bat file www.computing.net/answers/dbase/editing-text-in-txt-file-via-bat-file/744.html

restore the file type www.computing.net/answers/dbase/restore-the-file-type/381.html