I have made one script that i must run on many different sites in an aplication
Is it possible to run it at once depend of text file ore csv file.
I am new on this. I have try following:
Set FSO=CreateObject("Scripting.FileSystemObject")
Set TF2=FSO.OpenTextFile("D:\temp\all.txt",1) ' 1=ForReading
Do
line=TF2.ReadLine
Set TF=FSO.OpenTextFile(line,1) ' 1=ForReading2
inp=TF.ReadAll
out1=Replace(inp,"Find","Replace")
out2=Replace(out1,"Find","Replace")
out3=Replace(out2,"Find","Replace")
out4=Replace(out3,"Find","Replace")
out5=Replace(out4,"Find","Replace")
TF.close
Set TF=FSO.CreateTextFile(line,True)
TF.Writeline out5
TF.Close
While line<>""
TF2.Close
I hav on error
(36, 10) Microsoft VBScript compilation error: Expected 'Wend'
Exit code: 1, 0001h
Line 36 is the last line
Thanks Erik
Is it possible to run it at once depend of text file ore csv file.
I am new on this. I have try following:
Set FSO=CreateObject("Scripting.FileSystemObject")
Set TF2=FSO.OpenTextFile("D:\temp\all.txt",1) ' 1=ForReading
Do
line=TF2.ReadLine
Set TF=FSO.OpenTextFile(line,1) ' 1=ForReading2
inp=TF.ReadAll
out1=Replace(inp,"Find","Replace")
out2=Replace(out1,"Find","Replace")
out3=Replace(out2,"Find","Replace")
out4=Replace(out3,"Find","Replace")
out5=Replace(out4,"Find","Replace")
TF.close
Set TF=FSO.CreateTextFile(line,True)
TF.Writeline out5
TF.Close
While line<>""
TF2.Close
I hav on error
(36, 10) Microsoft VBScript compilation error: Expected 'Wend'
Exit code: 1, 0001h
Line 36 is the last line
Thanks Erik