Jump to content

Restore theme files from cd


kleb

Recommended Posts

I need to restore the theme files (c:\windows\resources\themes\) from the XP cd. Is there an easy way to extract files from the cd? And could someone give me a directory listing so I can make sure I get them all?

Thanks,

Kleb

Link to comment
Share on other sites


I was bored so I made a quick and dirty batch file that will extract the default themes. :)

@echo off

set cdrom=d:

mkdir Themes
mkdir Themes\Luna
mkdir Themes\Luna\Shell
mkdir Themes\Luna\Shell\Homestead
mkdir Themes\Luna\Shell\Metallic
mkdir Themes\Luna\Shell\NormalColor

expand %cdrom%\i386\CLASSIC.TH_ "Themes\Windows Classic.theme"
expand %cdrom%\i386\LUNA.TH_ "Themes\Luna.theme"
expand %cdrom%\i386\LUNA.MS_ "Themes\Luna\luna.msstyles"
expand %cdrom%\i386\HOME_SS.DL_ "Themes\Luna\Shell\Homestead\shellstyle.dll"
expand %cdrom%\i386\METAL_SS.DL_ "Themes\Luna\Shell\Metallic\shellstyle.dll"
expand %cdrom%\i386\BLUE_SS.DL_ "Themes\Luna\Shell\NormalColor\shellstyle.dll"

echo.
echo Finished Extracting Theme files.
pause

Copy the above to a text file and rename it theme.cmd.

Make sure you set the appropriate letter for your CDROM at the begining of the file. (example: set cdrom=d: )

Place your XP CD into the drive and execute the batch.

When you run this file, it will create a directory called Themes and extract the appropriate files to their proper directories. The new Themes directory will be created at the same location the batch was executed. Its structure will be identical as that found in Windows\Resources\...

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