LOGIN  |  REGISTER
Smart Living Made Brilliant!
CASTLEOS FORUM

HomeScripting

A forum for information about scripting with CastleOS. Get samples, suggestions, and other help here

opening a program Messages in this topic - RSS

mario rodriguez
mario rodriguez
Posts: 21


12/15/2014
mario rodriguez
mario rodriguez
Posts: 21
hello can someone please help me with the following script. what I want to do is open any program .exe using castleos I have the following code please advise.
using System;
using CastleOSKinectService;
using System.Diagnostics;

public class MyScript
{
public void Main(string[] args)
{
System.Diagnostics.Process.Start("mspaint.exe");
}
}
0 link
Chris Cicchitelli
Chris Cicchitelli
Administrator
Posts: 3390


12/15/2014
Chris Cicchitelli
Chris Cicchitelli
Administrator
Posts: 3390
Try using the full path of the exe, i.e. C:\\myPath\\myFile.exe
0 link
mario rodriguez
mario rodriguez
Posts: 21


12/16/2014
mario rodriguez
mario rodriguez
Posts: 21
did not work;


using System;
using CastleOSKinectService;
using System.Diagnostics;

public class MyScript
{
public void Main(string[] args)
{
System.Diagnostics.Process.Start("C:\Windows\System32\mspaint.exe");
}
}
0 link