These forums are read-only and considered to be an archive. Please use the new Community for future interaction and posts.

Dynamic Root

Trying to edit the config file so that the wexRoot can be dynamic.

Tried using

Const wexRoot = "(Recordset1.Fields.Item(""FileDir"").Value)"

and 

Const wexRoot = "Server.MapPath(""images/"")"

But keep coming up with errors. Any ideas?

Thanks
Damian
Damian 3/28/2004 12:17 PM
Having similar problems, trying to link the AUTH_USER in the path
Greg Walker 3/29/2004 8:02 PM
I don't think it is possible to assign anything other than a static string to a const. I've played with this for ages and still got no where!!!
Chris Pratt 3/31/2004 9:20 AM
Just remove the word Constant
Scott Lovy 4/22/2004 11:11 AM
Ive tried swapping the const with a var string but it doesn't like it.
Chris Pratt 4/24/2004 4:30 PM
wexRoot = Recordset1("FileDir") should work.  Where do  you see errors? 
Scott Lovy 4/25/2004 10:29 PM
Try moving along the directory tree. When you upload it goes to the wrong place or sometimes the window fails to open. It was while ago when i tried messing with it so i cannot be sure.
Chris Pratt 4/26/2004 8:44 AM
I had written a detailed explanation on this issue before, see this thread:
dynamic root folder
Cem Alacayir 4/28/2004 11:02 PM