Re: Help with shell command!
It should be
VB Code:
shell "c:\test.exe",vbNormalFocus
Re: Help with shell command!
or you can use this
VB Code:
Dim ShellReturn as long
ShellReturn=shell( "c:\test.exe",vbNormalFocus)
'IF the Retrun values is greater than it is the handle of
'of the opened window.It it is zero Then your shell application
'is not opend
Re: Help with shell command!
im unsure what your looking for,, you dont need a Vbnormalfocus on the end, Your not trying to look at the file, your trying to execute it right?
VB Code:
Shell "C:\somepath" Bang, it excutes
Shell "C:\windows\explorer.exe C:\Path" , Vbwhatever for viewing
Re: Help with shell command!
Quote:
Originally Posted by danasegarane
It should be
VB Code:
shell "c:\test.exe",vbNormalFocus
Yup. Syntax error.
Re: Help with shell command!
Do you have c:\test.exe
or
have you change the file name to applicable file name?
If you are still gettin error:
What error you are getting?