Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem moving from mapped drives to UNC
Message
De
21/05/1998 14:55:22
Ryan Hirschey
Federal Reserve Bank of New York
New York City, New York, États-Unis
 
 
À
21/05/1998 14:45:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00100857
Message ID:
00100913
Vues:
41
><snip>
>
>>Example if I map a drive P: to FS_RENAL2\USER1\APPS
>>I can then run the application p:\db\main\vmain.exe with no problems.
>>
>>If I dispense with the drive mapping and simply start the application by directory referencing FS_RENAL2\USER1\APPS\DB\vmain.exe it can not seem to find the "database" subdirectory.
>>
>>Any thoughts?
>
>Just guessing here, but maybe the app doesn't have a reference point to locate the database dir from. Kinda like using ..\ with a unc path. There isn't a parent dir to navigate to (well, there is, but the computer doesn't know it), so it just errs out while ..\ with a drive letter works great. What if you create a shortcut with the working dir as \\f2_renal2\user1\apps? I don't know if that would work or not, but worth trying.
>
>Greg


In the beginning of your app, could you try the following? It might work.

cd "\\fs1\vol1\cbsusers\apps\programs\visual foxpro" &&use your UNC here

I found that putting quotes around path/file references allow you to use long file/folder names and names with spaces. Using CD should set the UNC path as your default directory, from which you can use the relative path referencing that you prefer. Hope this helps.
Ryan Hirschey
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform