Max wrote:
Private Sub Command1_Click()
Shell ("c:\xxx.bat")
End Sub
NEVER put brackets around a single parameter like that unless you know
exactly what it is doing. If you do this, it WILL bite you in the back
one day.
You should only use brackets when using the return value of the function
(which includes call) or when you explicitly want a parameter to be
evaluated (Which is why it will fail when you try and pass an object)
--
Dean Earley (de*********@icode.co.uk)
i-Catcher Development Team
iCode Systems