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

link|improve this question

80% accept rate
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. – Roald van Doorn Apr 19 '10 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). – Shurup Apr 19 '10 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. – Shurup Apr 19 '10 at 13:48
feedback

1 Answer

up vote 0 down vote accepted

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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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