I want to open an app which has a shortcut path similar to
"C:\Programe Files\Temp\Temp.exe" "C:\Programes\Temp\Temp2.ws"
However Shell does not like this
?
I want to open an app which has a shortcut path similar to
"C:\Programe Files\Temp\Temp.exe" "C:\Programes\Temp\Temp2.ws"
However Shell does not like this
?
Sub Macro1()
x = Shell("cmd.exe /c C:\Programes\Temp\Temp2.ws", 1)
End Sub
By using cmd.exe you do not have to start the application. cmd knows which
application to start to process Temps.ws
--
Gary's Student
"ceemo" wrote:
>
> I want to open an app which has a shortcut path similar to
>
>
> "C:\Programe Files\Temp\Temp.exe" "C:\Programes\Temp\Temp2.ws"
>
> However Shell does not like this
>
>
> ?
>
>
> --
> ceemo
> ------------------------------------------------------------------------
> ceemo's Profile: http://www.excelforum.com/member.php...o&userid=10650
> View this thread: http://www.excelforum.com/showthread...hreadid=561050
>
>
Try
Shell "C:\Programe Files\Temp\Temp.exe C:\Programes\Temp\Temp2.ws",1
--
HTH
Bob Phillips
(replace somewhere in email address with gmail if mailing direct)
"ceemo" <[email protected]> wrote in
message news:[email protected]...
>
> I want to open an app which has a shortcut path similar to
>
>
> "C:\Programe Files\Temp\Temp.exe" "C:\Programes\Temp\Temp2.ws"
>
> However Shell does not like this
>
>
> ?
>
>
> --
> ceemo
> ------------------------------------------------------------------------
> ceemo's Profile:
http://www.excelforum.com/member.php...o&userid=10650
> View this thread: http://www.excelforum.com/showthread...hreadid=561050
>
thanks guys i have tried both of these but couldnt get either to work?
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks