Date:  01/31/2006 04:05:30 PM Msg ID:  002837
From:  FoxWeb Support Thread:  002833
Subject:  Re: How to pass variable to a new form.
If you are not running FoxWeb as a service, then FoxWeb runs under the userid that you used to log into Windows.  If, on the other hand, you run FoxWeb as a service, it will run under the user specified in the service properties (Control Panel\Administrative Tools\Services, locate FoxWeb and open its properties).  By default the FoxWeb service runs under the system account, which has full rights on the server, but no rights on remote network shares.  If you want to access remote network shares, you should use a user account that has rights to these shares.  For details please refer to the Running as a System Service section of the Operating the FoxWeb Server topic in the FoxWeb documentation.

FoxWeb Support Team
support@foxweb.com email

Sent by Larry Zhang on 01/30/2006 08:20:11 PM:
What is a service user? How do I point to a shared folder for internet users? My web server ip is static. so I should say \\10.20.0.15\data1  ?
Any worry about intrusion into my data folder?
 
Thanks.
 
Sent by FoxWeb Support on 01/30/2006 06:20:10 PM:
Both code snippets should be working in both plain VFP and FoxWeb.  Are you running FoxWeb as a service?  If yes, make sure that the service user has rights on the \\myServer\Data1 share.

FoxWeb Support Team
support@foxweb.com email

Sent by Larry Zhang on 01/30/2006 11:46:40 AM:
In VFP, we can use this:
 

cDataPath="\\myServer\Data1\"

Select * from cDataPath + "myTable.dbf";

    into Cursor Temp

 
But cDataPath is not recognized even within the same FW script.
How should I resolve this? cDataPath is a dynamically changing value. I cannot use:
 

Select * from \\myServer\Data1\myTable.dbf ;

    into Cursor Temp

 
Thank you.