Is it possible to start a batch file silently with no window created from the autorun.inf?

  • Why would you want to do that? Sounds like you're trying to start stuff on someone else's machine you don't want them knowing about (malicious?). Even so, IIRC, Microsoft patched some things in the autorun functionality so that it always shows all items, so I don't think it is possible.
    – R-D
    Apr 19, 2010 at 13:06
  • No, I want to start a batch that starts an autorun according whether the .net is installed (e.g. autorun.net.exe autorun.old.exe). Apr 19, 2010 at 13:46
  • I found a free tool NirCmd on nirsoft.net/utils/nircmd.html that can start a batch silently, but I want to start my batch directly. Apr 19, 2010 at 13:48

1 Answer 1


What you would probably have to do is code the autorun.exe (or whatever you want your .inf to start automatically) such that the first thing it does is to detect whether .NET is installed. If it is, it runs the executable that supports .NET. If it isn't, it runs a separate executable for no .NET. That's about as close as you're going to come. There's no way to do it within the .INF file.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.