Jump to content

Run .bat via RunOnce


Recommended Posts

Posted

First I'm sorry if this is a newbie question (which I am) or has been previously answered (I searched I swear! lol), but I am trying to set my install to run a .bat of registry tweaks for some proprietary software and such upon first boot.

In my run once I've created a line that reads: "D:\1st Boot\1stboot.bat".

Within said folder I have all of my .reg files, a .txt of changes implemented in the install, as well as the above mentioned .bat

The contents of the .bat are:

@ECHO OFF

regedit /s AU.reg

regedit /s EMS-Putty-Settings.reg

regedit /s FileZilla.reg

regedit /s SetIEHomePage.reg

cmd /c "inst includes.txt"

cls

When Windows boots to the desktop after I login for the first time a command window appears briefly, then things such as browser customizations and such run as is typical for a new user, but my .bat has not run. I can run the .bat manually off the D:\ but then that kind of defeats the purpose.

I am installing XP Pro SP3 from a Dell OEM with all recent updates through November's Patch Tuesday along with IE8, Flash, Adobe Reader, VLC, and JRE 6.

Any suggestions? Thank you much ahead of time.


Posted

First I'm sorry if this is a newbie question (which I am) or has been previously answered (I searched I swear! lol), but I am trying to set my install to run a .bat of registry tweaks for some proprietary software and such upon first boot.

In my run once I've created a line that reads: "D:\1st Boot\1stboot.bat".

Within said folder I have all of my .reg files, a .txt of changes implemented in the install, as well as the above mentioned .bat

When Windows boots to the desktop after I login for the first time a command window appears briefly, then things such as browser customizations and such run as is typical for a new user, but my .bat has not run. I can run the .bat manually off the D:\ but then that kind of defeats the purpose.

I am installing XP Pro SP3 from a Dell OEM with all recent updates through November's Patch Tuesday along with IE8, Flash, Adobe Reader, VLC, and JRE 6.

Any suggestions? Thank you much ahead of time.

sbj, Welcome. We need to see your Last Session.ini as requested in the BIG BOLD RED LETTERS above; please attach it. Did you include a call to your .bat file in the Unattended Task RunOnce tab? Take a look if not. Enjoy, John.
Posted

What is inst includes.txt? I don't recognize inst as a command.

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