22-11-18 02:00 AM
22-11-18 02:06 PM
07-04-21 09:35 PM
01-06-21 02:44 PM
Hi,
I struggled with same issue as Anthony. This worked for me:
Check that following folders contains curl.exe -file:
C:\Windows\System32\
C:\Windows\SysWOW64\
If curl.exe is only at one folder, just make sure that both folders have the same .exe -file.
How this came to mind: .bat (which includes curl) worked fine when launched manually via file explorer but when running it via BP, it claims that cURL is not recognized as a .... command. Seems that File explorer launches cmd.exe in 32bit and BP launches cmd as 64bit and in my case, 64-bit folder did not included the curl.exe -file...
Idk, is this a permanent solution but at least it worked for us!
01-06-21 02:51 PM
02-06-21 09:44 AM
I didnt bother with standard VBOs, just made my own stuff.
Process process = new Process();
process.StartInfo.FileName = cmd;
process.StartInfo.Arguments = args;
process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
process.StartInfo.CreateNoWindow = true;
process.StartInfo.UseShellExecute = false;
process.StartInfo.RedirectStandardOutput = true;
process.StartInfo.RedirectStandardError = true;
process.StartInfo.StandardOutputEncoding = Encoding.GetEncoding(decimal.ToInt32(encoding));
process.StartInfo.StandardErrorEncoding = Encoding.GetEncoding(decimal.ToInt32(encoding));
process.Start();
//* Read the output (or the error)
var output = process.StandardOutput.ReadToEndAsync();
var error = process.StandardError.ReadToEndAsync();
process.WaitForExit();
process.Close();
stdout = output.Result;
stderr = error.Result;
Then just pass full path to curl in cmd and whatever you need in args, encoding is 65001(UTF-8) for curl binary I think. stderr/stdout is your output streams.
02-07-21 05:24 PM