You may want to try using ShellExecute instead so you can explititly pass parameters.
VB Code:
Option Explicit Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, _ ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long Private Const SW_SHOWNORMAL As Long = 1 Private Const SW_SHOWMAXIMIZED As Long = 3 Private Sub OpenSomething() ShellExecute Me.hWnd, "Open", "C:\Test.xls", "/something /somethinglese /3", "C:\", SW_SHOWNORMAL End Sub





Reply With Quote