Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question
    
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). –  Alexander Zwitbaum 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. –  Alexander Zwitbaum Apr 19 '10 at 13:48

1 Answer 1

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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