jayme65 Posted September 21, 2021 Posted September 21, 2021 Hi, I am to send run a .au script from C# I'm doing it that way: System.Diagnostics.Process myProcess = new System.Diagnostics.Process(); myProcess.StartInfo.FileName = "AutoIt3.exe"; myProcess.StartInfo.Arguments = "/AutoIt3ExecuteScript " + ("\"" + scriptPath + "\" ") + ("\"" + argument + "\" ") ; myProcess.Start(); The argument will most often contains a path (to another application) and very often an argument for that other application. In C#, a quote is escaped by using a double quote. The problem is this one: argument="-fullscreen ""F:\thirdapplication.exe""" ...will land in AutoIt like -fullscreen "thirdapplication.exe" ...which is perfect! At the contrary, argument="""F:\thirdapplication.exe""" so, only a path, no parameters is seen by AutoIt as (check the missing opening quote) F:\thirdapplication.exe" So, if the argument begins with a quote, the opening quote is not interpreted (hope that I'm clear with all that ) What am I missing? Could you please help!?
Gianni Posted September 21, 2021 Posted September 21, 2021 (edited) Have a look to this answer given by @Joshere: https://www.autoitscript.com/forum/topic/181491-question-about-autoit3executeline/?do=findComment&comment=1303199 Edited September 21, 2021 by Chimp Chimp small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now