Nice idea Alienhunter, I was thinking that those Dos days were over but sometimes there's a need for it. I've been thinking about this myself but did not find a way to pass a relative variable, or can that be passed through jShell? I suppose the answer is obvious but anyway. It would be great if you upload a small source code example with a simple form to this code i.e two buttons 'enable autostart' and 'disable autostart'. It would be nice to see it in action. A registry library wouldn't hurt