Page 1 of 1

Import filenames/URLs into Batch Wizard

Posted: Wed Aug 28, 2013 1:58 pm
by jim.mcintyre
I need to validate about 200 pages, and I have a list of their URLs as a text file. Is it possible to create a batch from this list without having to manually create the batch items and paste in the URLs?

Re: Import filenames/URLs into Batch Wizard

Posted: Thu Aug 29, 2013 12:03 am
by MikeGale
Hi Jim,

I'm a user who does what you're talking about fairly often.

I'm travelling at the moment so I won't dig out specific code, just describe the general procedure I use.
  • Create a batch file that does what you want for the 200 files. This only contains one or two url's to check.
  • Identify each replaceable piece for the url in the batch file.
  • Make list of the url's to check. (I do one per line no adornment.) Take backup!
  • Create regular expression to make batch lines from list. I keep a copy in a file for next time.
  • Apply regex to list. Inspect carefully. If not right do again.
  • Add top and tail parts of batch file, and name it appropriately.
  • Fire up batch wizard, load list, check out the entries, adjust if necessary...
  • GO
Expressed like that it seems long, it's not. Probably quicker to do than to describe. (I tend to use a variety of editors to perform the replace (depends what other work I'm in the middle of, so no specifics given here). The regex's are so simple they're easily portable.)

Good luck.

Re: Import filenames/URLs into Batch Wizard

Posted: Thu Aug 29, 2013 7:51 am
by Albert Wiersch
Thanks Mike!

Also, this might call for use of the "first old format" target list: ... ormats.htm

If you have a list of links, one per line, then simply add "URL : " (without the quotes but with the space on each side of the colon) to the beginning of each link/link and now you have a target list!