After a random mess with the args command line, I finally got it to work. I feel a little lame in answering my own question, but hopefully it helps someone else anyway. It turned out that I was mistaken in the correct use of command line arguments. If someone has something more elegant or even useful than what I put, I will give you an answer.
open System.Diagnostics let launchExecutable() = let proc = new Process() proc.StartInfo.FileName <- @"C:\Program Files (x86)\Microsoft F#\v4.0\fsi.exe" proc.StartInfo.Arguments <- @"--exec --nologo pathToFSXFile\Test.fsx" proc.Start() launchExecutable();;
source share