• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 175
  • Last Modified:

Opening an application through VB

Hello,

I use a third party application...I believe that application was written in C. That application folder has, one exe and 13 dll files. Say, this application is present in C:\pace\app.exe along with the dll files.

When I double click this exe from Windows, the application opens and I am getting the first menu screen. Then, I naviagated to C:\pace in command prompt and typed app.exe. Again, the application opens and I am getting the first menu screen.

Now, I want to open the application through VB...To test this, I just put a command on a form and put the Shell statement code in Command1_click.

It opens a window for the application, but is a blank white window...I know the window is that of application, but why is it blank...why I am not getting the menu screen I was getting by just double clicking it or from the command prompt..I tried different methods of shelling using command.com, comspec etc..everything gives the same result..just opens a blank window!
I am sure my shell code is correct, but I believe it may have something to do with dlls or paths etc...

Could any one please help me out here..Please bear with me as I am short of points..

Thanks
0
vblycos
Asked:
vblycos
1 Solution
 
Éric MoreauSenior .Net ConsultantCommented:
use ChDir to change the current directory to c:\pace before shelling.
0
 
vblycosAuthor Commented:
Thanks emoreau, that did the trick!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now