General information
Title:
Same exe runs over network but not locally
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only