ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Shell ? (https://www.excelbanter.com/excel-programming/367082-shell.html)

ceemo[_78_]

Shell ?
 

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


Gary''s Student

Shell ?
 
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



Bob Phillips

Shell ?
 
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" wrote in
message ...

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




ceemo[_81_]

Shell ?
 

thanks guys i have tried both of these but couldnt get either to work

--
ceem
-----------------------------------------------------------------------
ceemo's Profile: http://www.excelforum.com/member.php...fo&userid=1065
View this thread: http://www.excelforum.com/showthread.php?threadid=56105



All times are GMT +1. The time now is 06:21 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com