TechWhirl (TECHWR-L) is a resource for technical writing and technical communications professionals of all experience levels and in all industries to share their experiences and acquire information.
For two decades, technical communicators have turned to TechWhirl to ask and answer questions about the always-changing world of technical communications, such as tools, skills, career paths, methodologies, and emerging industries. The TechWhirl Archives and magazine, created for, by and about technical writers, offer a wealth of knowledge to everyone with an interest in any aspect of technical communications.
>What I have is some thing like the following:
>
>K:\drivename\subdirectory\subdirectory\filename.ext
>
>I've got one giant list and would like to create a Webpage from this list,
>but can't think of a way to turn this listing of files into hyperlinks
>without manually linking each and every one of the file names to the
>corresponding file on the shared drive.
What you can do depends on your scripting and programming skills. Using
the tools you're likely to already have lying around, it shouldn't be too
time consuming to write a Word macro (using Visual BASIC for
Applications) that can open the text file, manipulate each line, and save
it under a new name, kind of like this:
1) Open the text document containing the list of files.
2) For each line:
replace K:\ with / (tells it to start at the root level of the Web
server instead of a K drive)
replace \ with / (go from DOS conventions to Web server conventions)
pre-pend the line with <A HREF=" + the line + "> + the line again +
</A> (create a link)
3) Repeat until all lines are done
The actual syntax is something you'll have to come up with, but the Word
VBA help is pretty thorough, if a little slow to slog through.
There are other scripting languages and environments if you want to
explore them... perl is available for almost every platform out there, so
if you ever leave DOS/Windows and go elsewhere, your scripts will still
work with minor tweaking.
Hope this is what you were looking for,
----->Mike
3)
________________________________________________________________
stockman -at- jagunet -dot- com -- AOL and AOL Instant Messenger:MStockman
IPCC 01, the IEEE International Professional Communication Conference,
October 24-27, 2001 at historic La Fonda in Santa Fe, New Mexico, USA.
CALL FOR PAPERS OPEN UNTIL MARCH 15. http://ieeepcs.org/2001/
---
You are currently subscribed to techwr-l as: archive -at- raycomm -dot- com
To unsubscribe send a blank email to leave-techwr-l-obscured -at- lists -dot- raycomm -dot- com
Send administrative questions to ejray -at- raycomm -dot- com -dot- Visit http://www.raycomm.com/techwhirl/ for more resources and info.