Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 10 of 22 total
Thread Database folder - Is better an UNC path ?
Tue, Oct 21 2008 6:19 AMPermanent Link

"Mauro Botta"
Hi
i have an application , not c/s , using in network enviroment.


When i create the database, in the database folder Is better write UNC path

\\NAMEPC\MYPROGRAM\MYDB
or
a mapped unit ( Z:\MYPROGRAM\MYDB )  ?


with a mapped unit there is the problem , in all PC i must to have always
Z:\ for all PC.


hint ?
Tue, Oct 21 2008 7:13 AMPermanent Link

"Mauro Botta"
another problem..

if i use UNC method , i can't access at dir NOT SHARED.

then... i can't use always.


for Clients with only one pc, the dir of my program is not shared.

i need to use UNC and Relative path.. work with all 2 method.

how i can convert UNC to Relative path ?
and Relative path to UNC ?
Tue, Oct 21 2008 7:55 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Mauro


I'm slightly confused. On a network the directory has to be shared so that people can access it and UNC is a far better option than mapped drives, and I think from memory that the directory you map to has to be shared.

On a stand alone PC the user should have access to all directories unless otherwise setup for security (or you're using Vista Smiley. Its a long time since I had a PC without any network connections so I can't test but with the network components installed I can't see why UNC shouldn't work.

Roy Lambert
Tue, Oct 21 2008 9:07 AMPermanent Link

"Mauro Botta"
hi Roy

> I'm slightly confused. On a network the directory has to be shared so that
> people can access it and UNC is a far better option than mapped drives,
> and I think from memory that the directory you map to has to be shared.

here,  i can write for "Folder EDB database"   \\NAMEPC\MYPROG\MYDB , and
all work well , on all PC of the network.


> On a stand alone PC the user should have access to all directories unless
> otherwise setup for security (or you're using Vista Smiley. Its a long time
> since I had a PC without any network connections so I can't test but with
> the network components installed I can't see why UNC shouldn't work.


here,  i can't write \\NAMEPC\MYPROG\MYDB  , because the dir MYPROG is not
shared ( no network , only 1 pc in office )
and  i must write  C:\MYPROG\MYDB in EDB database Folder.


in my program anytime i must write a simple file ( not database )
in MYPROG dir, for get a correct path , i must read the EDB DB path ( can
read a UNC path or a Relative Path )

how i can convert  \\NAMEPC\MYPROG\MYDB\MYFILE.XXX in
Z:\MYPROG\MYDB\MYFILE.XXX ?
and viceversa.


Tue, Oct 21 2008 9:33 AMPermanent Link

"Mauro Botta"
i have found a solution ^^



my dir structure :

C:\MYPROG
C:\MYPROG\EDB      ( config edb file )
C:\MYPROG\MYDB  ( edb tables )
C:\MYPROG\MYDB2  ( edb tables )


I have problems if i write UNC or Complete Relative path ( read above )

then i was try to write in Path of my EDB Database :

...\MYDB

and all work well Smile)


...\MYDB    , work well for 1 pc user , and work well for a network
enviroment.



Are there problems in this method ?

Tue, Oct 21 2008 10:13 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Mauro

>here, i can't write \\NAMEPC\MYPROG\MYDB , because the dir MYPROG is not
>shared ( no network , only 1 pc in office )
>and i must write C:\MYPROG\MYDB in EDB database Folder.

Are you sure the pc is NAMEPC and that it has the network stuff loaded?

Roy Lambert [Team Elevate]
Tue, Oct 21 2008 10:18 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Mauro

>..\MYDB
>
>and all work well Smile)
>
>..\MYDB , work well for 1 pc user , and work well for a network
>enviroment.
>
>Are there problems in this method ?

YES. What you're essentially doing is saying look for this directory of the current path. That's fine when the current path is what you want, but if someone opens Word and loads a document or something like that it may change.

Roy Lambert [Team Elevate]
Tue, Oct 21 2008 10:27 AMPermanent Link

"Mauro Botta"

Tnx Roy

good answer.

...\   is discarded.




If i write :  \\NAMEPC\c$\MYPROG work on all PC ?   WINXP - VISTA ?

if my disk is not shared , i can't access with : \\NAMEPC\SHARED\MYPROG

but \\NAMEPC\c$\MYPROG , i think work well ... or not ?
Tue, Oct 21 2008 10:53 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Mauro


I have no idea what the c$ is in \\NAMEPC\c$\MYPROG

I think a light may have just dawned. To use UNC the format is

\\computername\dir\subdir\subdir\..\subdir

You're inserting SHARED - what is this?

If you're trying to come up with a path that will work on every PC and every network then you can't, unless you set them all up as you want. You need to set up the database path either when the software is installed or when its run and in an appropriate fashion for the hardware. If what you're trying to do is ship it ready configured then you will have a major problem.

Have another look at the CDCollection example that Tim ships with ElevateDB and you can see how he's done it.


Roy Lambert [Team Elevate]
Tue, Oct 21 2008 10:59 AMPermanent Link

"Mauro Botta"
i can't do it,   i'm confused...

clear all.. and make a new question.



I have a program multi user , NO C/S ,

I'm deploy this program to 500 clients.


There are clients with 2-10 users , and clients with only one user.

The program is installed on C:\MYPROG of the server

the clients don't have notting on your HD, only one icon on desktop for open
Z:\MYPROG\MYEXE.EXE

Only the multi users, disk C  is shared and mapped like "Z"


Which is the correct method for indicate a path in EDB database folder ?

the path is ugual for all pc ,


I CAN'T OVERWRITE BY CODE ( main form create ) A DIFFERENT PATH FOR EVERY PC
Frown
( EXENAME+"DIRDB" )
but i must to write a single path for ALL PC in the network.

Page 1 of 3Next Page »
Jump to Page:  1 2 3
Image