I have gCloud configured on my laptop. With Powershell gsutil ls
is listing the name of bucket.
But with the following C# code I am not getting any output!
Process process = new Process();
// Configure the process using the StartInfo properties.
process.StartInfo.FileName = "cmd.exe";
process.StartInfo.Arguments = @"/k gsutil ls > C:\Users\gaurav.sharma\Desktop\Output.txt";
process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
process.Start();
process.WaitForExit();
I should ideally get same response in Output.txt. But my execution is stuck and there is no output at all. What am I missing? What am I doing wrong?