How to change the file display icon in WinPE

Source: Internet
Author: User

Here with "Old nine WinPE old peaches modify YYQ572 optimization Enhancement" For example, in his B: Disk has a regttp.cmd program. This regttp.cmd is used to set up a listening association with its documentation, and if no association is implemented, this batch can be run manually. When running it, it will automatically parallel all the icons of the music file and the associated open program.

When we need to change his display icon or open the program in parallel, it will be very troublesome and must be changed one at a time. If you use the following code, it will be very convenient for you to make bulk changes.

For example, the prepared ICO icon file is renamed with the back-stamp name of the music file, such as Mp3.ico, Wma.ico, Wav.ico, and then the following code is saved as a. bat file and is run in the directory of the ICO icon file.

Set Filename=%%~ni

echo REM this regttp. CMD is used to set up listening to the association of its documents, if no association is implemented, you can run this batch manually. >regttp. Cmd

Echo.>>regttp. Cmd

Echo PUSHD%%^~dp0>>regttp. Cmd

Echo SET tp^=%%cd%%>>regttp. Cmd

Echo.>>regttp. Cmd

For%%i In (*.ico) do (

rem Add File type

echo REG ADD hklmsoftwareclasses.%filename%/ve/d audio.%filename%/F ^>nul>>regttp. Cmd

)

For%%i In (*.ico) do (

rem Parallel file icon

echo REG ADD hklmsoftwareclassesaudio.%filename%defaulticon/ve/t reg_sz/d "%%tp%% av playback icoaudio%filename%.ico"/f^> Nul>>regttp. Cmd

)

For%%i In (*.ico) do (

REM Parallel File Open program

echo REG ADD hklmsoftwareclassesaudio.%filename%shellopencommand/ve/t reg_sz/d ""%%tp%% audio and video playback thousands of listening TTPLAYER.EXE "" "%%%%1 "/f^>nul>>regttp. Cmd

)

Echo.>>regttp. Cmd

Echo Exit>>regttp. Cmd

Exit

Where: "%tp% audio and video playback Icoaudio" is the music file of the ICO icon storage path

"%tp% audio and video playback listening TTPLAYER.EXE" is the opening program of music files

If you want to change the icon of another file type or open a program, just prepare the associated ICO file and open the program.

Note: After downloading, place the audio and video folders under "%tp% Audio-visual ico", and if not, create them yourself.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.