Hi
I have below code & i want that the process should be in loop . It should repeat 10 times
C#
public static int Start(string processName)
{
var process =
Process.Start("chrome.exe", @processName);
return
process.Id;
}Thanks

Jignesh KumarRank #91 · 22.9K reputationPosted Nov 27, 2022, 10:55 PM EST
Where ever you are calling you method. Put for loop to call this method.
for (int i =1; i < 10; i++) { var processId = Start("processName parameter Value"); }