0

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.

2 Answers 2

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.

3
  • 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, 2013 at 8:24
  • should I convert the bat to an EXE?
    – rn10950
    Mar 18, 2013 at 17:30
  • you can't use a BAT file or convert it. You must code a real native App in C. Mar 18, 2013 at 19:44
0

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .