Sorry i dont want to do it but i did not get any answer here:
I want to run this code in vb: nc -l -p 1234 < installer.zip or ncat -l 1234 < installer.zip
I tried this:
Dim p As New ProcessStartInfo
p.FileName = "Cmd.exe"
p.Arguments = "nc -l -p 1234 < installer.zip"
Process.Start(p)
And this too:
Process.Start("nc.exe", "-l -p 1234 < installer.zip")
but using either of them gives me error:
using netcat <: forward host lookup failed:h_errno 11004: NO_DATA
using ncat Ncat: Got more than one port specification: 1234 < installer.zip.
However if the same code(copy) is run through batch file it works.