Running external program
Running external program
10 Oct 2023, 07:21
Hi
if I include the following lines in visual studio then the program will open notepad as expected
using System.Diagnostics
Process process = new Process();
process.StartInfo.Filename = “notepad.exe”;
process.Start();
But if I put the same lines of code in ctrader desktop Automate let's say inside OnStart, it does not work and gives the following error
Crashed in OnStart with Win32Exception: An error occurred trying to start process 'notepad.exe' with working directory 'C:\Users\My Username\Documents\cAlgo\Data\cBots\cbot project name'. Unknown error (0x2)
notepad.exe here is just an example to simplify the question, I intend to run scripts.
Any hint and help is greatly appreciated
firemyst
18 Mar 2024, 01:18
I'll give you a few snippets. This is what I did and have notepad launching from cbots this way:
@firemyst