11-11-2010, 08:28 PM
Parameters for Shellexecute function are (in sequence)
hwnd - Long, Optional : handle to the owner window used
lpOperation - String,Optional : a verb, that specifies the action to be performed. could be like edit, explore, open etc
lpFile - String,Required : specifies the file or object on which to execute the specified operation
lpParameters - String,Optional: specifies an executable file
lpDirectory -String,Optional : default (working) directory for the action
nShowCmd - Long, Required (Not 100% sure about required/optional) : flag that specify how an application is to be displayed when it is opened
hope this will help you.
by the way why dont you use a bit easier way to run a batch file using Wscript.shell
e.g.
hwnd - Long, Optional : handle to the owner window used
lpOperation - String,Optional : a verb, that specifies the action to be performed. could be like edit, explore, open etc
lpFile - String,Required : specifies the file or object on which to execute the specified operation
lpParameters - String,Optional: specifies an executable file
lpDirectory -String,Optional : default (working) directory for the action
nShowCmd - Long, Required (Not 100% sure about required/optional) : flag that specify how an application is to be displayed when it is opened
hope this will help you.
by the way why dont you use a bit easier way to run a batch file using Wscript.shell
e.g.
Code:
Dim oShell
Set oShell = CreateObject ("Wscript.shell")'
oShell.run "C:\Share\Shri\shridos.bat"