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.

script/batch file to run on first boot help

Featured Replies

ok so what im trying to do is have a text file popup on the screen the first time i login after installing my xp cd

ps sorry if this has been answered before i couldnt find anyhting on the subject on here and on google for the past 5 hours

thanks


Open your text file with Notepad using RunOnceEx. Follow the steps below. As written, your text file should be located in a directory specified in the PATH environment variable, such as the %SystemRoot% directory.

  1. Decompress SVCPACK.IN_ in the I386 directory of your Windows source files to get SVCPACK.INF. Place the SVCPACK.INF file in I386 and delete the file named SVCPACK.IN_ in I386.
  2. Verify that the CatalogSubDir value in the [setupData] section in SVCPACK.INF is set correctly. It should read as follows:
    [SetupData]
    CatalogSubDir="i386\svcpack"


  3. Add the following line to the [setupHotfixesToRun] section at the end of the SVCPACK.INF file:
    MyRegs.cmd


  4. Create a file named MyRegs.cmd in the I386\svcpack directory of your Windows source files with the following single line of code:
    Reg.exe ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\OpenTextFile" /v "1" /d "Notepad.exe \"TextFileName.txt\"" /f

Edited by 5eraph

  • Author

only one question where do i locate the txt file i dont see from the code where it should be located on the cd unless i missed it

Sorry. It's difficult to know your current level of experience with only three posts to your credit. Are you familiar with the $OEM$ distribution folders and WINNT.SIF? Other methods exist to get your files installed, but the $OEM$ folders are the easiest once they're set up properly.

  • Author

nope im a beginner at this i get everything else ok just not where to put my text

Edited by ir0nd4gg3r

OK. Thorough explanations for the $OEM$ folders and WINNT.SIF are provided at the links in my previous reply. Here's a crash course to get your text file in:

  1. Create a file named WINNT.SIF in the I386 directory of your Windows source files that contains the following lines of code:
    [Unattended]
    OemPreinstall="Yes"


  2. At the root of your Windows source (outside I386) create the directory "$OEM$\$$" and place your text file in the $$ subdirectory. This will install your text file in $SystemRoot$ ("C:\WINDOWS" by default).

Edited by 5eraph

  • Author

one last question svcpack.inf do i leave it like that or makecab it back to svcpack.in_

  • Author

just want to be sure

Edited by ir0nd4gg3r

You can MakeCab it if you'd like, but it's not necessary. Be advised that if both SVCPACK.INF and SVCPACK.IN_ exist in I386 then Windows will use the .IN_ file.

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.