Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

A Question about executing a batch file while installing

Featured Replies

hi every body out there :hello:

i have made a batch file to copy some files into windows folder and besides that i have made a reg file containing some registry tweaks that this batch file should add them to the registry.OK

my problem is that i dont know how to execute this batch file while installing windows. :}

Thanks in Advance

Edited by Delphianrex

  • Author

Thanks for your reply :hello:

but i want to know if it`s possible to add a line to svcpack to execute it or not? :thumbup

Why not?

[SetupHotfixesToRun] (or something like that;)
batch.cmd

Name it batch.cmd and put it in i386\svcpack and voila.

Don't forget to take out "(or something like that;)"

Edited by T D

  • Author

Thanks for your alternative. I am going to try it.

one more thing, how can i add some line to this batch file to edit boot.ini.

@ Delphianrex

Save as boot.cmd.

Edit for your needs.

@echo off

ATTRIB -R -S -H %systemdrive%\boot.ini

del /F /Q %systemdrive%\boot.ini

SET inifile="%systemdrive%\boot.ini"

ECHO [boot loader] >> %inifile%
ECHO timeout=0 >> %inifile%
ECHO default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS >> %inifile%
ECHO [operating systems] >> %inifile%
ECHO multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="XP SP2 Pro" /bootlogo /noguiboot /fastdetect>> %inifile%

ATTRIB +R +S +H %systemdrive%\boot.ini

exit

one more thing, how can i add some line to this batch file to edit boot.ini.

Use the bootcfg command.

  • Author

Thanks alot for the replies.

but there`s a problem, this batch file is not executed during installation :blink:

Edited by Delphianrex

Is boot.cmd in the svcpack dir? It should not be compressed.

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.