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
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.
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.
Summary: Hi, I need a batch file to edit a text file. This file contains test results from a program. The data is separated by spaces and "00000" (space and numbers as delimiter?). I need to have each of them ...
Summary: Here is a quick script in biterscripting. # Script CompareVal.txt # Input arguments var str file1 # Path to first file var str file 2 # Path to second file # Read first text file. var str text1 ...
Summary: i need to replace a key word in a text file through cmd script the record length of a record in the file is 2600. i am using below mentioned code for the same @echo off REM -- Prepare the Command Pro...