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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.