I am executing a ruby script which takes command line arguments using C# code.
sc.rb
holds the logic of Nessus API integration and yaml file is configuration file which is passed as argument.
Here is what I am currently doing :
System.Diagnostics.ProcessStartInfo proc = new System.Diagnostics.ProcessStartInfo();
proc.FileName = @"C:\windows\system32\cmd.exe";
proc.Arguments = @"/c C:\\Users\\name\\Documents\\sc.rb --config Nessus.yaml";
This code doesn't work for sure. Is there any way I can specify command line arguments?