cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

How to call a external applications using OS script (mapkey)?

SOLVED
Participant

How to call a external applications using OS script (mapkey)?

Dears,

Can anyone help to understand how to call a external applications using OS script (mapkey)?

For example if I want to open https://community.ptc.com/  using a OS Script (mapkey) how can I do this.

Does it require VBA coding?

Regards,

Sreenivas

1 ACCEPTED SOLUTION

Accepted Solutions

Re: How to call a external applications using OS script (mapkey)?

OS Skript (inside Mapkey Editor):

start "" "http://www.inneo.de"

 

is saved as :

 @SYSTEM start http://www.inneo.com;

inside the config.pro.

 

Br,

Eike

View solution in original post

8 REPLIES 8

Re: How to call a external applications using OS script (mapkey)?

Hi ...

 

you can use following Mapkey

 

e.g.

 

@SYSTEM start http://www.inneo.com;

 

Br,

Eike

Tags (1)

Re: How to call a external applications using OS script (mapkey)?

Hello Eike,

 

Thank you very much for your response.

I just simply copy pasted 

@SYSTEM start http://www.inneo.com;

in the OS script. But its not working. Am I missing something here

 

Regards,

Sreenivas

Re: How to call a external applications using OS script (mapkey)?

OS Skript (inside Mapkey Editor):

start "" "http://www.inneo.de"

 

is saved as :

 @SYSTEM start http://www.inneo.com;

inside the config.pro.

 

Br,

Eike

View solution in original post

Re: How to call a external applications using OS script (mapkey)?


@sreenivaspai wrote:

Hello Eike,

 

Thank you very much for your response.

I just simply copy pasted 

@SYSTEM start http://www.inneo.com;

in the OS script. But its not working. Am I missing something here

 

Regards,

Sreenivas


Hi,

please tell us what external application do you want to launch. How do you launch external application, now ?

 

Below you can see an example ... mapkey dd start application named open_drawing_cr2.exe

 

mapkey dd @SYSTEMstart D:\\PTC\\Open_Model_Drawing_AutoIt\\open_drawing_cr2.exe;

 

 


Martin Hanák

Re: How to call a external applications using OS script (mapkey)?

No, this doesn't go in the config.pro, it simply gets included inside a mapkey:

 

mapkey lws @MAPKEY_NAMELaunch Website; @MAPKEY_LABELLaunch Website;\
mapkey(continued) @SYSTEM start http://www.inneo.com;

 

Re: How to call a external applications using OS script (mapkey)?

I use it to open my working directory and open external programs also.

here is one example:

 

@echo off
set cdn=%cd%
set cust=%cdn:~10,3%
set trcn=%cdn:~13,9%
if exist "\\your server\Customers\%cust%\_Final Docs\%trcn% docs" (
start "" "\\your server\Customers\%cust%\_Final Docs\%trcn% docs"
)
if exist "\\your server\CUI\ITAR\%cust%\_Final Docs\%trcn% docs" (
start "" "\\your server\CUI\ITAR\%cust%\_Final Docs\%trcn% docs"
)

Re: How to call a external applications using OS script (mapkey)?

Thank you very much Eike. Its working !!!!!!

Re: How to call a external applications using OS script (mapkey)?


@Osiel_G wrote:

I use it to open my working directory and open external programs also.

here is one example:

 

@echo off
set cdn=%cd%
set cust=%cdn:~10,3%
set trcn=%cdn:~13,9%
if exist "\\your server\Customers\%cust%\_Final Docs\%trcn% docs" (
start "" "\\your server\Customers\%cust%\_Final Docs\%trcn% docs"
)
if exist "\\your server\CUI\ITAR\%cust%\_Final Docs\%trcn% docs" (
start "" "\\your server\CUI\ITAR\%cust%\_Final Docs\%trcn% docs"
)


Hi,

my suggestion ...

1.] create batch file, eg. myapp.bat and put following commands into it

@echo off
set cdn=%cd%
set cust=%cdn:~10,3%
set trcn=%cdn:~13,9%
if exist "\\your server\Customers\%cust%\_Final Docs\%trcn% docs" (
start "" "\\your server\Customers\%cust%\_Final Docs\%trcn% docs"
)
if exist "\\your server\CUI\ITAR\%cust%\_Final Docs\%trcn% docs" (
start "" "\\your server\CUI\ITAR\%cust%\_Final Docs\%trcn% docs"
)

2.] during mapkey creation put following info into OS Script tab area

start "window title" /D working_directory_path path_to_batch_file

Note: The above mentioned start command is just my guess, only.


Martin Hanák
Announcements