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
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.
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
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