Computing.Net > Forums > Windows XP > read,edit text file 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.

read,edit text file using bat file

Reply to Message Icon

Name: vikram86
Date: January 19, 2009 at 22:10:41 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: Ed in Texas.
Date: January 21, 2009 at 02:45:49 Pacific
Reply:

vikram86, I'm not sure. Been a while since I did any programming. Strikes me that you simply need to set your 'echo' statement to print a variable. That way you can use an if/then/else to switch the variable 'off/on' and have the machine decide which to use. It may/may not be visible onscreen depending on variable state.
HTH.
Ed in Texas.


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 Windows XP Forum Home


Sponsored links

Ads by Google


Results for: read,edit text file using bat file

Batch file to edit text file www.computing.net/answers/windows-xp/batch-file-to-edit-text-file/156973.html

Compare two different text files+batch www.computing.net/answers/windows-xp/compare-two-different-text-filesbatch/179609.html

need to do find and replace in a text file , www.computing.net/answers/windows-xp/need-to-do-find-and-replace-in-a-text-file-/175911.html