Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

replace text in a textfile

Status
Not open for further replies.

lovettj

Programmer
Joined
May 22, 2007
Messages
10
Location
US
Hello,

I need some help. I need to replace some text in a file.

For example I need to replace the following http part of the string with only the number 389401 in the text file using vbscript:


original string
'Yes','
new string
'Yes','389401'
 
Like this ?
NewString=Left(OldString,InStr(OldString,",'")+1) & Right(OldString,Len(OldString)-InStrRev(OldString,"="))

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top