Mr_Shaw
asked on
vbscript edit text file
I have 61 text files in a directory.
Each text file includes the phrase "Use [db1]".
Is it possible to create a vb script which loops through each text file and deletes this phrase?
Each text file includes the phrase "Use [db1]".
Is it possible to create a vb script which loops through each text file and deletes this phrase?
ASKER
The files are SQL scripts.. an example would be:
Use [db1]
select * from dbo.tb1
Use [db1]
select * from dbo.tb1
ASKER
I need to remove the Use [db1] so that I migrate a set of stored procedures to a new schema.
ASKER
I have 625 files which i need to remove "Use [db1]"
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for your help....
When I runt the script I get an eror:
Line: 11
Char : 4
Error: Input past end of file
Code 800A003E
When I runt the script I get an eror:
Line: 11
Char : 4
Error: Input past end of file
Code 800A003E
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks
Welcome.
~bp
~bp
Can you provide a sample file for testing?
~bp