Page 1 of 1

How to execute a program from USB disk without window.

Posted: Mon May 23, 2011 8:49 pm
by elseine
Hello everyone. I have one question, ¿is there any form to execute a program from USB disk without window, only introducing the USB in the computer and then, the program execute, doing his function, and end without any window shown? or if you know any program to do that, I will very gratefull if you could tell me that program^^
Thanks for your time!

Posted: Tue May 24, 2011 9:04 pm
by SinistraD
create an autorun inf file with the content:

[autorun]
open=path/myprogram.exe

and implement myprogram without opening any window. In visual studio/c++ you can do that with a windows project, in c# also a windows project but remove Form.cs and the form creation from main.cs. This latter part is really language and compiler specific.

Posted: Sat Jun 04, 2011 10:51 pm
by Allosentient
Correct me if I'm wrong, but the Autorun from USB was patched as part of security improvements on some of the major OS's.

Posted: Sat Jun 04, 2011 10:58 pm
by SinistraD
Yeah, your right. But I think that's the only way.

Another trick would be to make the user execute your program, for example make it look like a folder. You can have unexpectedly good results by naming it after an actual folder and making the real folder invisible. Works like a charm.