Search and Replace url

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

Posts: 10
Joined: Tue Mar 16, 2010 11:32 pm

Search and Replace url

Postby WzevGIlK » Sun Nov 14, 2010 4:08 pm

The following maybe very easy to do but I cant seem to get it done. Please help!

List 1:

List 2 ({url}):

How to Replace {url} whith every line from list 2:


Please help :roll:

User avatar
DataMystic Support
Site Admin
Posts: 2139
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia

Re: Search and Replace url

Postby DataMystic Support » Mon Nov 15, 2010 7:33 am

You can use VBScript or JScript to automate this. You'll need to modify this code so that the replace text for {url} is different each time the input file is processed.

Code: Select all

sub vb_build_filter( TPWindow )

dim f1,f2,f3,f4,f5,f6

f1 = TPWindow.addReplaceFilter( "{url}", "***", 0, false, false, false, false, false, false, false, 0 )

'File List:
TPWindow.addFile "**your filename here**", 0, 1

end sub   'End subroutine

  Set vb_TextPipeApp = CreateObject("TextPipe.Application")
  Set vb_TPWindow = vb_TextPipeApp.newWindow
  if vb_TPWindow.execute = false then MsgBox "ERROR " & vbCrLF & vb_TPWindow.errorText


Simon Carter, - Insulin dose calculator for Type 1 diabetes - 250,000 free software downloads - send huge email attachments

Return to “TextPipe Tips and Tricks, Questions and Support”

Who is online

Users browsing this forum: No registered users and 9 guests