Jump to content

CDRom Variable in Hyperlinked Document


Recommended Posts

Posted

Not sure I am posting this in the right place, but here we go.

I have a Table of Contents in a Word document which has hyperlinks to 400 external Word documents.

When burning onto a CD, because the drive letter changes they are not working.

I understand by using %cdrom% at the beginning of the link theoretically this would resolve the problem.

BUT my computer does not recognize %cdrom% unless I add the variable.

Which means you would have to add that variable to each machine the CD was going to be run on.

Because this is a client driven request, I have to find a solution.

This however is way over my head.

Any help is GREATLY appreciated!~


Posted

Depending on what scripting langauge you can get the current directory path, which you could use to get path.

Example VBS Script

Dim Act :Set Act = CreateObject("Wscript.Shell")
msgbox "Current Location : " & Act.CurrentDirectory, 4128, "Current Directory"

Example CMD Promt

@Echo Off
TITLE Current Directory
CLS
MODE 75,5
COLOR 8F

Set CD=%CD%

Echo.
Echo Current Directory : %CD%
echo.

pause

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...