Our Brands

Impact-Company-Logo-English Black-01-177x54

Welcome to the Schneider Electric Website

Welcome to our website.
		
How can we help you today?
In the Magelis iPC, can I open a Windows program within Runtime?
Issue:
In the Magelis iPC, can I open a Windows program within Runtime?

Resolution:
Yes, you can call a Windows program within the Runtime on a Magelis iPC.  The script you need to use is:

Sys.createProcess

Function
Only available on XBTGTW and iPC Series targets. Starts an application program on the target machine.

Format
int Sys.createProcess(String processName, String args);

Parameters

Parameter                          Description
String processName          Enter the complete path and file name of the application program.
Use double slashes between drive and directory names.
e.g. C:\\Winnt\\Notepad.exe
The slash is used to denote special characters, such as tab "\t" and new line "\n".
The extra backslash is required to override the special character designation.

String args                         Enter an argument here when required by the program. Enter an empty string ("")
when there is no argument.

Return Value
Returns 0                           when the process ends abnormally. Otherwise, returns the value of the handle. This
handle number is required to terminate a process.

Schneider Electric Philippines

Explore more
Range:
Users group

Discuss this topic with experts

Visit our community and get advice from experts and peers on this topic and more
Explore more
Range:

Need help?

  • Product Selector

    Quickly and easily find the right products and accessories for your applications.

  • Get a Quote

    Start your sales inquiry online and an expert will connect with you.

  • Where to buy?

    Easily find the nearest Schneider Electric distributor in your location.

  • Help Center

    Find support resources for all your needs, in one place.

  • Products Documentation
  • Software Downloads
  • Product Selector
  • Product Substitution and Replacement
  • Help and Contact Center
  • Find our Offices
  • Get a Quote
  • Where to buy
  • Careers
  • Company Profile
  • Report a misconduct
  • Accessibility
  • Newsroom
  • Investors
  • EcoStruxure
  • Job Search
  • Blog
  • Privacy Policy
  • Cookie Notice
  • Terms of use
  • Change your cookie settings