Normal Topic Client/Server Question (Read 473 times)
CapitalG
Full Member
Members
***
Offline



Posts: 143
Location: Phoenix, Arizona
Joined: Mar 4th, 2003
Client/Server Question
Oct 18th, 2007 at 8:15pm
Print Post Print Post  
Using 2.0.3  Using Client/Server

On Client
Target: C:\Sesame\Program\sesame.exe -Client ServerName
Start In: C:\Sesame

On Server
Target: C:\Sesame\Program\sesame.exe -Server ServerName
Start In: C:\Sesame

1.  Only the rootdirs.ini file on the server will be used even though each client will have a rootdirs.ini file.  When you set up Client/Server the Clients connect to the Server and ask it for the list of DB files that are in the directory that is listed in the first entry in the Server's rootdirs.ini file

2.  In Programming, when referencing a filename, it needs to be with respect to the "Start In" (or "Current Working Directory")

Are statements 1 and 2 correct given the information listed above?

Assuming they are correct, if I am creating a file in programming and reference the output path of C:\Sesame\File\Output.txt, am I correct that this will put the file on the Server?  If so, how do I reference it so the file will go to the Clients computer?

You would think we would all understand Client/Server with all the discussion about it.  

Thanks for continually putting up with us me.


  
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: Client/Server Question
Reply #1 - Oct 18th, 2007 at 8:59pm
Print Post Print Post  
1. Yes that is correct.

2. This is also true but programming references files on the local system and not on the Server system. So if you just say FileOpen("Data.txt") that will open the data folder in C:\Sesame on the Client Computer.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
CapitalG
Full Member
Members
***
Offline



Posts: 143
Location: Phoenix, Arizona
Joined: Mar 4th, 2003
Re: Client/Server Question
Reply #2 - Oct 18th, 2007 at 9:29pm
Print Post Print Post  
Thanks.    I tested it 3 times yesterday and was certain it was not working as you described - obviously I was not seeing it right yesterday.  Tested again today and it is working just as you said.(But you already knew that)

Thank you again.
  
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: Client/Server Question
Reply #3 - Oct 18th, 2007 at 9:32pm
Print Post Print Post  
No problem.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged