Skip to main content
1-Visitor
February 5, 2020
Solved

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

  • February 5, 2020
  • 2 replies
  • 6117 views

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

Best answer by Eike_Hauptmann

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

2 replies

15-Moonstone
February 5, 2020

Hi ...

 

you can use following Mapkey

 

e.g.

 

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

 

Br,

Eike

1-Visitor
February 5, 2020

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

15-Moonstone
February 5, 2020

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

1-Visitor
February 5, 2020

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"
)

24-Ruby III
February 6, 2020

@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.