I have created a consol application . I want to run application from a usb in background mode. I created an autoexe.bat file with following content

@echo off
ConsoleApplication1.exe

But when the usb is plugged in,

  • run autoexe option is not coming
  • The command window is not running in background mode( not displaying anything in the windows)

I have created the consol application with output type as windows application

i found the solution for the second part.
Modified the autoexec.bat to

@echo off
start /min ConsoleApplication1

The problem currenlty remaining is that the autorun option is not coming when the usb is plugged in