Jump to content

Recommended Posts

Posted
I know it isn't complicated, I looked it through. But I'm still saying that it's harder for someone understand if he has just started working on commandfiles. It can be made a lot simpler (but maybe not as "neat") with multiple files. It's up to the poster to decide which method to use :)

Believe me... those spawned from 5 files I used to use... I got tired of having 5 files, so I combined them :) This simply places a "placeholder" in the registry at the end of each step and reboots the PC. The next time the file is run it pulls that placeholder from the registry and jumps to that step.


Posted
I know it isn't complicated, I looked it through. But I'm still saying that it's harder for someone understand if he has just started working on commandfiles. It can be made a lot simpler (but maybe not as "neat") with multiple files. It's up to the poster to decide which method to use :)

Believe me... those spawned from 5 files I used to use... I got tired of having 5 files, so I combined them :) This simply places a "placeholder" in the registry at the end of each step and reboots the PC. The next time the file is run it pulls that placeholder from the registry and jumps to that step.

Nice one un4given1 :thumbup

Posted

I like the way poweroff.exe works -but I can't get it to work on my unattended CD... it's in the path okay, that's not the problem... The problem is it doesn't want to reboot when I want it to. I placed it at the same location that the shutdown was, near the top of cleanup.cmd, and it came up but blocked execution of the rest of the cleanup script. However, when I place it at the bottom of cleanup.cmd - it seems to not want to run, and windows just logs in normally without ever executing poweroff...

So.... where am I supposed to put it so it reboots after all my runonceex entries?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...