Hi there,
I have a simple windows 95 peer to peer network of about 8 computers.
In my last fpw2.6 application, all my files making up the application were dumped together in one directory/folder. Other computers on the network could access this application by simply mapping a drive letter (D: or E: or F: etc) to this folder, and then running the application.
Now I have done things the 'correct' way and have my various files separated into subdirectories such as "data","menus","forms" etc.
However, I have now had to use path referencing such as "do form c:\app\forms\form1.scx". This now causes problems for other computers on the network, because it looks for these files on their c: drives.
I have tried changing the path to \\computername\app\forms\form1.scx but then I get an error: 'file already in use' on my computer.
What I have done so far is to place the following in my 'startup' program:
store sys(5) to mcDrive && store that computers mapped drive letter
if sys(5) = "c:" && and it is my computer
store "c:\app" to mcDrive && include this only for my computer
endif
Then I have changed paths to include the &mcDrive as follows:
do form &mcDrive\forms\form1.scx
Is this the best way of getting around this path problem? Any suggestions?
Many Thanks
David Wheeldon