Hi Robert,
I use Windows 2003 web server. The @include tag seems to want to start with the root of the website. The root of the web site is set to <file:///\\ics9\Witango\wwwroot\Catsite> \\ics9\Witango\wwwroot\Catsite in IIS admin. This variable is included in witango.ini HIDDENFOLDER=C:\\Hidden <@include "<@var system$HIDDENFOLDER>\Inc\scope.inc"> produces the following in debug: "Getting network file <file:///\\ics9\Witango\wwwroot\Catsite\C:\Hidden\scope.inc> \\ics9\Witango\wwwroot\Catsite\C:\Hidden\scope.inc" Am I going to have to set the variable in witango.ini to HIDDENFOLDER=..\\..\\..\\..\\..\\..\\..\\Hidden like I do with TCFSEARCHPATH? Or is there a better way to do this? Thanks Steve _____ From: Robert Shubert [mailto:[email protected]] Sent: Friday, July 17, 2009 1:48 PM To: [email protected] Subject: RE: Witango-Talk: Locating files outside of the web site root That should work fine. Should be simple to test too. I assign several additional server scoped vars directly in Witango.ini without issue. Since Witango is executing the fetch directly, IIS/apache has nothing to do with it. You can also reference a windows network resource: \\server_name\share\folder\dsn.inc <file:///\\server_name\share\folder\dsn.inc> Just be sure you double check your backslash usage, and you are correct in that the wintago.ini file uses backslash as an escape character, so they need to be doubled up. Robert _____ From: Fogelson, Steve [mailto:[email protected]] Sent: Friday, July 17, 2009 2:31 PM To: [email protected] Subject: Witango-Talk: Locating files outside of the web site root Can I define a system variable and include it in witango.ini that defines a location (folder) outside the IIS root? IE: HIDDENFOLDER=C:\\Hidden And then access files within this folder with the following: <@assign method$DSNTest value="<@dom value='<@include "<@var system$HIDDENFOLDER>/Inc/DSN.inc">'>"> Or is there a different or better way to do this? Thanks, Steve Fogelson "In God We Trust" ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
