thanks, I'll give it a try what I'm trying to do is make a batch file that could for instance launch an app to tweak windows themes (you have to patch some dll to be able to install 3rd party themes). This app needs to be run in admin mode and asks confirmation about it. when the app itself starts you have different buttons available, some to patch, some to unpatch etc I don't know if this explanation is better :-p