>Hi.. Ed Rauh
>How I can set path for free Table ..when I install my program different environment.
>Sample ...My file at F:\pub\patient or G:\pub\patient ...Can you tell me?
>
I'd store the locations somewhere in a configuration file or registry key and retrieve the data table location when the application started.
If users could screw around with their drive mappings and I had to use mapped drives, I'd store the information on the registry on a per-user, per system basis; I tend to use UNCs rather than mapped drive letters for file locations on the network so that file location names are uniform across systems. It's too easy for someone to screw up drive mappings. If I need them, I can always map the proper UNC to a drive letter with either the Win32 API or something like the Wscript.Network object.