B
Bob Richardson
When a user clicks a button on my form, I want to Shell to MyApp, which is
in the same folder as my MDB.
It works if I include the entire path; e.g.
stAppName = "C:\Documents and Settings\Bob\My Documents\BW\MyApp.exe"
Call Shell(stAppName, 3)
but this is cumbersome, since I want to be able to move my MDB (and of
course MyApp.exe) to other folders on other computers.
Since my MDB is in the C:\Documents and Settings\Bob\My Documents\BW\
folder, I would have thought that the CurDir would be that. However, when I
run
MsbBox CurDir
it shows "C:\Documents and Settings\Bob\My Documents\"
in otherwords, it doesn't show the "BW" at the end.
I'd like to Shell to an app in the same folder by just using:
Call Shell("MyApp",3)
Anyone know what's going on, and why the current directory is not where my
MDB is? How would I change the directory back to the same directory as my
MDB?
in the same folder as my MDB.
It works if I include the entire path; e.g.
stAppName = "C:\Documents and Settings\Bob\My Documents\BW\MyApp.exe"
Call Shell(stAppName, 3)
but this is cumbersome, since I want to be able to move my MDB (and of
course MyApp.exe) to other folders on other computers.
Since my MDB is in the C:\Documents and Settings\Bob\My Documents\BW\
folder, I would have thought that the CurDir would be that. However, when I
run
MsbBox CurDir
it shows "C:\Documents and Settings\Bob\My Documents\"
in otherwords, it doesn't show the "BW" at the end.
I'd like to Shell to an app in the same folder by just using:
Call Shell("MyApp",3)
Anyone know what's going on, and why the current directory is not where my
MDB is? How would I change the directory back to the same directory as my
MDB?