Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Same exe runs over network but not locally
Message
From
02/02/2000 10:30:02
Michael Dougherty
Progressive Business Publications
Malvern, Pennsylvania, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Same exe runs over network but not locally
Miscellaneous
Thread ID:
00326144
Message ID:
00326144
Views:
58
I compiled my app so it runs as an exe (which now doesn't run from the command line)

Shortcut1 to the network copy- f:\omasrc\dist\oma.exe
Shortcut2 to the local copy- c:\oma\oma.exe

Shortcut1 works, shortcut2 doesn't; they're the same version of the .exe

by doesn't work i mean that it returns the error:
File 'c:\data\ofcdet.dbf' does not exist
which is true, since the ofcdet.dbf is in f:\oma\data\

Main has set default to f:\oma, and open database data\omadb- then a stored procedure opens the tables (without specifying the path because the DBC should 'know' that information)

the error generated looks like the set default isn't happening, resulting in a default of c: (the same drive where the .exe is running) and that the open database data\[dbname] has the path "data" being included in the table name - c:\data\ofcdet.dbf. This is just wrong behavior. I can't guess why it works from the network version.

I know i can't complain when the machine does what i tell it rather than what i wanted it to do - but in this case, it's not even doing what i tell it.
Next
Reply
Map
View

Click here to load this message in the networking platform