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.

I made a simple batch file double password security system for my pc that also displays my number I. Case it gets lost. How do I run this in a full screen command prompt right after the boot screen like chkdsk runs? I tried Task Scheduler. Windows 7 Ultimate SP1.

share|improve this question

2 Answers 2

Chkdsk is a native application which must be started by adding it to the key BootExecute under HKLM\System\CurrentControlSet\Control\Session Manager in the Registry. So create your own application and add it to the BootExecute value.

share|improve this answer
    
Since the OP's batch file isn't a native app and probably contains other commands which also aren't, is it safe to put them there in the registry? –  martineau Mar 18 '13 at 8:24
    
should I convert the bat to an EXE? –  rn10950 Mar 18 '13 at 17:30
    
you can't use a BAT file or convert it. You must code a real native App in C. –  magicandre1981 Mar 18 '13 at 19:44

Comment by magicandre1981 seems to say that BAT cannot be converted to exe and used in the BootExecute. My own experience however, says differently. When searching for bat2exe type of tools (like http://www.scriptcode.com/battoexe) you just need to make sure, that the resulting exe is a valid console application, and it can be used.

Also, to my knowing, there is no requirement for native code to be written in C in order to work with this method. Personally, I have used freepascal-written console application with BootExecute successfully. I think that programming language is irrelevant.

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.