how to run notepad.exe in inventor ilogic

how to run notepad.exe in inventor ilogic

HyoSeok_Kim
Contributor Contributor
270 Views
2 Replies
Message 1 of 3

how to run notepad.exe in inventor ilogic

HyoSeok_Kim
Contributor
Contributor

안녕하세요.

inventor professional 2023 사용중입니다.

 

인벤터 ilogic을 통해 메모장을 실행하는 로직을 아시는 분이 계실까요?

 

인벤터의 ilogic으로 구성된 template이 있는데, 메모장 파일을 실행할 수 있는 로직이 있을지 궁금합니다.

 

이상입니다.

감사합니다.

 

0 Likes
271 Views
2 Replies
Replies (2)
Message 2 of 3

Dev_rim
Advocate
Advocate

Hi there,

You can run stand alone programs in Ilogic. Just implement that line to your rule.

Shell("PROGRAM_PATH")

if you want to run Example.exe on program files folder,

Shell("C:\ProgramFiles\Example.exe")

 For notepad you have to find notepad exe. Its in "%windir%\system32\notepad.exe" (Usually)

so the line you need is:

Shell("%windir%\system32\notepad.exe")

Regards

Devrim

If my answer is solved your problem, please mark it as Solution

Freundliche Grüße / Kind Regards
Message 3 of 3

CattabianiI
Collaborator
Collaborator

And in addition to what @Dev_rim said if you want to open a text file with the default program for the txt extension that's the line:

System.Diagnostics.Process.Start("C:\path\to\your\text\file.txt")