Start a batch file silently from the autorun.inf

1

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

Alexander Zwitbaum

Posted 2010-04-19T12:26:51.597

Reputation: 626

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 – 2010-04-19T13:06:42.810

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 – 2010-04-19T13:46:51.043

I found a free tool NirCmd on http://www.nirsoft.net/utils/nircmd.html that can start a batch silently, but I want to start my batch directly.

– Alexander Zwitbaum – 2010-04-19T13:48:44.707

Answers

0

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.

BBlake

Posted 2010-04-19T12:26:51.597

Reputation: 5 120