A method of adding PE software at random

Source: Internet
Author: User

When we use PE, there is a software in the PE system does not, but I just want to use, do I want to add myself to the PE system? There is a PE system under the software, I want to use, do I have to enter the PE system to use it?

In fact, the following to teach you a random way to add PE software, in order to solve this problem, can be used to add a simple DIY folder, which is optional add delete software.

Petools. INI, for searching the Petools directory (inspired by the hhh333 Petools.ini) Note: The Petools directory is built under the partition root directory.

' Generate a shortcut to the target file

_sub Makelink

EXEC =! Cmd/c "COPY"%systemroot%system32shortcut. BAT ""%tools%shortcut. BAT ""

EXEC =! Cmd/c "COPY"%systemroot%system32main. INI ""%tools%main. INI ""

LOAD%tools%main. Ini

MESS%tools% has been loaded into the Start menu. @ Mount Petools Tool #OK *2000

_end

' Search for files in Petools directory

Forx @PETOOLS, Tools,0,call makelink

Shortcut. BAT content as follows, search Petools executable file, set up the corresponding directory, and install *.inf, register *.reg and other auxiliary files.

@echo off

PUSHD%~dp0

IF not EXIST "%userprofile%" Start "Menu expansion directory (MD"%userprofile%"Start Menu Expansion Program directory")

for/f "delims="%%a in (' dir/b/ad ') do (

MD "%userprofile%" Start "Menu expansion program Directory%%a"

pushd "%%a"

FOR/R%%b in (*.exe *.cmd *.bat *.wim) do (

shortcut.exe/f: "%userprofile%" Start "menu expands directory%%a%%~nb.lnk"/A:C/t: "%%~FB"

FOR/R%%c in (*.inf) do RUNDLL32. EXE SetupAPI. Dll,installhinfsection DefaultInstall 128.%%c

FOR/R%%d in (*.reg) do regedit/s "%%d"

popd

)

)

Exit

Main.ini for the execution of Shortcut.bat.

EXEC!%curdir%shortcut. BAT

Forx. *.exe,var0,0,link%startmenu% Expansion Program Directory%var0%,%var0%

Forx. *.bat,var1,0,link%startmenu% Expansion Program Directory%var1%,%var1%

Forx. *.cmd,var2,0,link%startmenu% Expansion Program Directory%var2%,%var2%

Forx. *.wim,var3,0,link%startmenu% Expansion Program Directory%var3%,%var3%

FILE%startmenu% Expansion Program Directory SHORTCUT.BAT.lnk

EXIT

How to use:

1, download the attachment file, put four files under System32.

2, in their own local hard disk or U disk root directory to establish Petools folder, the program will be used in one of the lines, without additional settings.

3, into the PE, the implementation of the desktop Search load Petools to the Start menu.

Related Article

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.