Running netcat through vb forms

别等时光非礼了梦想. 提交于 2019-12-11 20:25:01

问题


i am trying to run netcat to programatically transfer a file using vb 2010 express. I am getting this error in console window : nc: forward host lookup failed:h_errno 11004: NO_DATA When i try to run the same code through batch file it works:

nc -l -p 3334 < some.exe

I have given a simple button and tried with the following codes:

'Dim p As New ProcessStartInfo
    'p.FileName = "Cmd.exe"
    'p.Arguments = "nc -l -p 3334 < RADTools.exe"
    'Process.Start(p)
    Process.Start("nc.exe", "nc -l -p 3334 < RADTools.exe")

please help

来源:https://stackoverflow.com/questions/28697506/running-netcat-through-vb-forms

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!