IVsLaunchPad::ExecBatchScript Method (String^, String^, UInt32, IVsOutputWindowPane^, UInt32, UInt32, String^, IVsLaunchPadEvents^, array<String^>^)
Creates a temporary batch file to be executed with output piped to an output pane in the IDE.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
int ExecBatchScript( String^ pszBatchFileContents, String^ pszWorkingDir, unsigned int lpf, IVsOutputWindowPane^ pOutputWindowPane, unsigned int nTaskItemCategory, unsigned int nTaskItemBitmap, String^ pszTaskListSubcategory, IVsLaunchPadEvents^ pVsLaunchPadEvents, array<String^>^ pbstrOutput )
Parameters
- pszBatchFileContents
-
Type:
System::String^
[in] String containing the text to be written to the batch file.
- pszWorkingDir
-
Type:
System::String^
[in] Working directory that is passed to CreateProcess by the environment. Can be null.
- lpf
-
Type:
System::UInt32
[in] Launch pad flags. Values are taken from the _LAUNCHPAD_FLAGS enumeration.
- pOutputWindowPane
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsOutputWindowPane^
[in] Pointer to the IVsOutputWindowPane interface created by CreatePane.
- nTaskItemCategory
-
Type:
System::UInt32
[in] Task item category, if lpf is set to LPF_PipeStdoutToTaskList. Values are taken from the VSTASKCATEGORY enumeration.
- nTaskItemBitmap
-
Type:
System::UInt32
[in] Task item bitmap if lpf is set to LPF_PipeStdoutToTaskList is specified. Values are taken from the _vstaskbitmap enumeration.
- pszTaskListSubcategory
-
Type:
System::String^
[in] Specifies a new task list subcategory to be created if lpf is set to LPF_PipeStdoutToTaskList is specified. The new subcategory is used for sorting and grouping in the task pane.
- pVsLaunchPadEvents
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsLaunchPadEvents^
[in] Pointer to the IVsLaunchPadEvents interface.
- pbstrOutput
-
Type:
array<System::String^>^
[out] true if all output was generated. Can be null.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell.idl:
HRESULT IVsLaunchPad::ExecBatchScript( [in] LPCOLESTR pszBatchFileContents, [in] LPCOLESTR pszWorkingDir, [in] LAUNCHPAD_FLAGS lpf, [in] IVsOutputWindowPane *pOutputWindowPane, [in] ULONG nTaskItemCategory, [in] ULONG nTaskItemBitmap, [in] LPCOLESTR pszTaskListSubcategory, [in] IVsLaunchPadEvents *pVsLaunchPadEvents, [out] BSTR *pbstrOutput );