View Single Post
  #4  
Old 09-24-2009, 04:17 PM
Robert_Thompson Robert_Thompson is offline
Junior Member
 
Join Date: Sep 2009
Posts: 10
Default

Here is the code we use, placed in the first form opened:

procedure TMenuForm.FormCreate(Sender: TObject);
var
Dir: string;
begin
Dir := 'C:\Priv\appname';
ForceDirectories(Dir);
session.PrivateDir := 'C:\Priv\appname';
Session.NetFileDir := 'H:\Net\appname';

end;

The directory 'C:\Priv\appname' is created on every PC when the app is first run.

We created, manually, 'H:\Net\appname'. (H is our network drive)

The pdoxusrs.net file is created in 'H:\Net\appname' automatically when the app starts.

I think that you should delete all PDOXUSRS.NET and PDOXUSRS.LCK files before you implement this change.

HTH,

Rob.

Last edited by Robert_Thompson; 09-24-2009 at 06:59 PM. Reason: Forgot something
Reply With Quote