Various path/path/files.asp all #include this 1 file

A

\A_Michigan_User\

Ok, I give up.

I need to #include the same 1 file (IncludeThis.asp) into 3 different asp
files.

1> C:\MyDir\ThisFile.asp
2> D:\MyDir\AASubSub\ThatFile.asp
3> E:\MyDir\CCSub\DDSubSub\AnotherFile.asp

On another server... those same 3 files... need to include
their own local copy of IncludeThis.asp

4> D:\EEDir\ThisFile.asp
5> E:\FFDir\GGSubSub\ThatFile.asp
6> F:\HHDir\IISub\JJSubSub\AnotherFile.asp

Is there a way I can make an #include statement that I can
put in the files... that will still find the IncludeFile.asp... regardless
of the different drives, different paths, different levels of dir nesting?
(Base filenames 1,2,3... are the same as 4,5,6, respectively.)

The include-file will always be called IncludeThis.asp
(Where should I put it?)
 
J

Jeff Cochran

Ok, I give up.

I need to #include the same 1 file (IncludeThis.asp) into 3 different asp
files.

1> C:\MyDir\ThisFile.asp
2> D:\MyDir\AASubSub\ThatFile.asp
3> E:\MyDir\CCSub\DDSubSub\AnotherFile.asp

On another server... those same 3 files... need to include
their own local copy of IncludeThis.asp

4> D:\EEDir\ThisFile.asp
5> E:\FFDir\GGSubSub\ThatFile.asp
6> F:\HHDir\IISub\JJSubSub\AnotherFile.asp

Is there a way I can make an #include statement that I can
put in the files... that will still find the IncludeFile.asp... regardless
of the different drives, different paths, different levels of dir nesting?
(Base filenames 1,2,3... are the same as 4,5,6, respectively.)

The include-file will always be called IncludeThis.asp
(Where should I put it?)

You need to put it where it can be access by a path from all
locations. Which likely means a UNC path to the separate servers,
dealing with permissions for the account accessing the UNC path. And
the possibility that a server connection is lost and all your pages
break.

Or, use a script to replicate the include to several locations that
are easier to access.

Jeff
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top