Goblinlord
Programmer
1}
I am having trouble with some code i am using to have an input file and have this script go through the file and replace certain strings. But it keeps giving me an error that says: Object required: '[String: "<everything in my input file>"]'
2}
How do you put the character " in a string?
Here is my code that is messing up.
<--
Set fs = CreateObject("Scripting.FileSystemObject"
Set cab = fs.OpenTextFile("c:\ben stuff\vbs\cab.txt", 1)
a1 = "ad"
a2 = "cab"
Set b = cab.ReadAll
Set c = b.Replace(a1, a2)
Set cabed = fs.CreateTextFile("c:\ben stuff\vbs\cabed.txt", True)
cabed.writeline(c)
a.Close
cabed.close
-->
I am having trouble with some code i am using to have an input file and have this script go through the file and replace certain strings. But it keeps giving me an error that says: Object required: '[String: "<everything in my input file>"]'
2}
How do you put the character " in a string?
Here is my code that is messing up.
<--
Set fs = CreateObject("Scripting.FileSystemObject"
Set cab = fs.OpenTextFile("c:\ben stuff\vbs\cab.txt", 1)
a1 = "ad"
a2 = "cab"
Set b = cab.ReadAll
Set c = b.Replace(a1, a2)
Set cabed = fs.CreateTextFile("c:\ben stuff\vbs\cabed.txt", True)
cabed.writeline(c)
a.Close
cabed.close
-->