s***@hotmail.com
2006-01-01 19:10:07 UTC
Hi,
I have a file.exe and when i load it i can tell it to shell. when Im in
the shell i move the present path c:\testprogram\test.exe to c:\blabla
for example using cd\ - cd\blabla - return.
But when I exit shell back to my text.exe program and then close the
program and then load it again, it loads fine but the path under it is
now at c:\blabla remember, so when Im using DirListBox.Path to exec
stuff within my c:\testprogram\ foler it fails because
'DirListBox.Path' no longer is c:\testprogram but c:\blabla as it
should since i changed the path in the command area, but now I need to
find a way to get vbdos to tell me 'where is the text.exe' after its
run!
'DirListBox.Path' will only give me the path where i last mess'd around
in the shell, I need to know the full path where i exec the test.exe
from.
In VB6.0 you can use App.Path hence it allwasy gives you the App Path!
thats what i need but i need this method in VBDOS
Does anyone follow this and have a method of getting the runing
App.Path? for VBDOS
Thanks,
I have a file.exe and when i load it i can tell it to shell. when Im in
the shell i move the present path c:\testprogram\test.exe to c:\blabla
for example using cd\ - cd\blabla - return.
But when I exit shell back to my text.exe program and then close the
program and then load it again, it loads fine but the path under it is
now at c:\blabla remember, so when Im using DirListBox.Path to exec
stuff within my c:\testprogram\ foler it fails because
'DirListBox.Path' no longer is c:\testprogram but c:\blabla as it
should since i changed the path in the command area, but now I need to
find a way to get vbdos to tell me 'where is the text.exe' after its
run!
'DirListBox.Path' will only give me the path where i last mess'd around
in the shell, I need to know the full path where i exec the test.exe
from.
In VB6.0 you can use App.Path hence it allwasy gives you the App Path!
thats what i need but i need this method in VBDOS
Does anyone follow this and have a method of getting the runing
App.Path? for VBDOS
Thanks,