T
Tatakau
I have an old network database program that I am trying to open from an
Access database. I tried using the Shell command, but it doens't seem to be
working. Well, it works in most instances, but with this particular program
it is having an issue.
The program I am trying to run is called SMS Host and it is stored on a
network drive (T. The full path to the program is:
"T:\HOSTPLUS\fxp32\INFRAMV.EXE". This is how I try to run it:
stAppName = "T:\HOSTPLUS\fxp32\INFRAMV.EXE"
Call Shell(stAppName)
When I click the button to activate that code, the program semi-opens, but
with a lot of errors.
The window title is "Microsoft Visual FoxPro", which is probably the shell
program that runs the database, or telnets into the database. I get a slew
of error messages, all leading me to believe that the program is missing
arguments at run-time or something. Which is weird though, because the
shortcut that is used to run the program doesn't contain any arguments at all.
When I go to the Start > Run box and type in the path
(T:\HOSTPLUS\fxp32\INFRAMV.EXE) it will start up just fine.
Using the shell command for other programs (ie, notepad, internet explorer,
etc) works just fine.
There is something about the Shell command that changes how the called
program is started up. Due to the program's nature (being on the network,
and probably being some sort of telnet), it needs a different method to
execute the program.
Are there any other ways to execute a program besides the Shell command?
Thanks!
Nick
Access database. I tried using the Shell command, but it doens't seem to be
working. Well, it works in most instances, but with this particular program
it is having an issue.
The program I am trying to run is called SMS Host and it is stored on a
network drive (T. The full path to the program is:
"T:\HOSTPLUS\fxp32\INFRAMV.EXE". This is how I try to run it:
stAppName = "T:\HOSTPLUS\fxp32\INFRAMV.EXE"
Call Shell(stAppName)
When I click the button to activate that code, the program semi-opens, but
with a lot of errors.
The window title is "Microsoft Visual FoxPro", which is probably the shell
program that runs the database, or telnets into the database. I get a slew
of error messages, all leading me to believe that the program is missing
arguments at run-time or something. Which is weird though, because the
shortcut that is used to run the program doesn't contain any arguments at all.
When I go to the Start > Run box and type in the path
(T:\HOSTPLUS\fxp32\INFRAMV.EXE) it will start up just fine.
Using the shell command for other programs (ie, notepad, internet explorer,
etc) works just fine.
There is something about the Shell command that changes how the called
program is started up. Due to the program's nature (being on the network,
and probably being some sort of telnet), it needs a different method to
execute the program.
Are there any other ways to execute a program besides the Shell command?
Thanks!
Nick