Jump to content

Running .cmd AFTER runonce


Recommended Posts

I know this question has probably been asked, but I couldn't find anything helpful when searching. I'm currently using RunOnceEx.cmd to install my programs. At the end like most people I'm importing a .reg file for all my preferences and using another cleanup.cmd to delete some unwanted files/organize the start menu. Some programs like winamp install the folder into the %UserProfile% start menu and I'd like to be able to move some of those files around, however the user profile that I want to modify hasn't been created yet when runonce runs. Is there a way to add a startup item to run once AFTER the first logon when the default start menu and documents folders have been created? Right now I've resorted to placing a .cmd file in the Default User/Desktop folder so that it's on the desktop after logon and I can manually click it to clean things up. Sorry if this isn't clear...

Link to comment
Share on other sites

I fixed this by triggering another batch file from cleanup.cmd

This way the system boots further, and creates all the start menu things etc.

Make sure that u use sleep.exe (you can download it), hold it for about 20 seconds (depending on how fast your system is booted) after that, you can do anything you want again.

I hope it's clear this way...

Link to comment
Share on other sites

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...