Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I've been wanting to do this for years actually but most of my scripting is done via CGI for web scripts. I want to be able to create a very basic password script to load into windows.

I only have one account on my laptop and it's Windows XP. Simply I just want to ask for a username/password indefinitely and load up the desktop when it's ready.

But, it needs to be set up in such a way it can't be terminated with the X (or task manager) and boot into the OS.

  • Comment on Is there a way to make Windows load a Perl script from bootup?

Replies are listed 'Best First'.
Re: Is there a way to make Windows load a Perl script from bootup?
by sago (Scribe) on Jun 30, 2007 at 04:33 UTC

    You can create a scheduled task such that it runs the perl script.

    In scheduled task you have options as

    Perform this task
    * daily
    * weekly
    * montly
    * one time only
    * when my computer starts
    * when i log on

    So you can choose the options as per your requirement.
Re: Is there a way to make Windows load a Perl script from bootup?
by GrandFather (Saint) on Jun 30, 2007 at 04:38 UTC

    What are you actually trying to achieve? XP already has a username/password protected log on system that prevents loading the desktop until you log on.


    DWIM is Perl's answer to Gödel
      Well I know XP has a username/password login and I know usually you shouldn't reinvent the wheel. But I'd find it much more interesting to have a login that I made that's not even tied to Windows but would prevent anyone from signing on. That's all

      It might not be the best thing I've ever made but it'd be a lot more fun signing on with Perl in the morning.

      As for that other anony monk, where you saying I was trying to create a password stealer? I'm not even trying to get this tied to Windows directly at all, the password I set up will be in a file somewhere to be used as a reference when signing on. It's not going to run from a Windows password if that's what you're getting at.

        I suspect it's not possible in any practical way. It would be very difficult to bypass the normal logon to start with, then I suspect you would have to effectively replace the code that brings up the desktop and that is likely burried in the bowels of Windows.


        DWIM is Perl's answer to Gödel
      Its a clever way of asking about windows, or how to write password stealer