CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 1999
    Posts
    8

    Shell function not responding

    I use the shell() function to start the "C:\program files\accessories\backup\msbackup.exe", but it returns 0. The path is correct, b'coz if I place the same command in the 'Start->Run' it works. I can run anyother app if placed in the backup folder.

    Any way out.

    Thanks
    James


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Shell function not responding

    you start it using Shell and it is not started and you do not get an error message?
    Try the ShellExecute API. It's return value gives you hints about the reason for not starting the app.


  3. #3
    Join Date
    Apr 1999
    Posts
    19

    Re: Shell function not responding

    The second parameter to the VB shell function is the WindowState of the new shelled program. This parameter defaults to vbMinimizedFocus, so you don't see the app!! Use the following line to shell your application:

    shell "path", vbNormalFocus


  4. #4
    Join Date
    Apr 1999
    Posts
    19

    Re: Shell function not responding

    The second parameter to the VB shell function is the WindowState of the new shelled program. This parameter defaults to vbMinimizedFocus, so you don't see the app!! Use the following line to shell your application:

    shell "path", vbNormalFocus


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured