Click to See Complete Forum and Search --> : Shell function not responding
James Joseph
May 20th, 1999, 05:43 AM
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
Lothar Haensler
May 20th, 1999, 06:21 AM
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.
Rob
June 3rd, 1999, 08:51 PM
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
rob
June 3rd, 1999, 08:51 PM
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
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.