China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-07-29 09:01
中国DOS联盟论坛 » 论坛回收站 » Please provide the specific content of the bat you wrote so that I can help you translate it. View 2,096 Replies 5
Original Poster Posted 2008-01-30 22:41 ·  中国 广西 柳州 电信
新手上路
Credits 10
Posts 10
Joined 2008-01-07 18:59
18-year member
UID 107924
Gender Male
Status Offline
Post my own written bat, hoping that前辈s can give some adviceClick here to download (Extraction code: 1cece265)
Floor 2 Posted 2008-01-31 13:13 ·  中国 四川 泸州 联通
高级用户
★★★
Credits 609
Posts 374
Joined 2006-08-02 22:38
19-year member
UID 59720
Status Offline
@shift 1
@echo off
title Essential for Surfing the Web!!
:logon
cls
echo.
echo 【 ★============★ 】
echo 【 Essential for Surfing 】
echo 【 ★============★ 】
echo ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★
echo ★ ★
echo ★ 1. 【 Baidu Search 】 5. 【Repair IE Cannot Browse】 ★
echo ★ ★
echo ★ 2. 【 Clear Junk 】 6. 【Delete Startup Items】 ★
echo ★ ★
echo ★ 3. 【Clear Right-Click Menu】 7. 【Clear Excess Startup Items】 ★
echo ★ ★
echo ★ 4. 【Unlock Registry】 8. 【More】 ★
echo ★ ★
echo ★ ★
echo ★ h. 【Help】 u. Visit Author's Space q.【Exit】 ★
echo ★ ★
echo ★★★★Made by J Rabbit★★★★★★★★Contact QQ: 859557092★★★★★
echo.
set choice=
set /p choice=◆Please press the key to choose:
if /i "%choice%"=="1" goto baidu
if /i "%choice%"=="2" goto laji
if /i "%choice%"=="3" goto youjian
if /i "%choice%"=="4" goto jiesuo
if /i "%choice%"=="5" goto ie
if /i "%choice%"=="6" goto ziqidong
if /i "%choice%"=="7" goto duoyuqidongxiang
if /i "%choice%"=="8" goto gengduo
if /i "%choice%"=="u" goto kongjian
if /i "%choice%"=="h" goto help
if /i "%choice%"=="q" goto exit
goto logon
:exit
exit


:baidu
cls
set/p a=Please enter the keyword:
start http://www.baidu.com/s?wd=%a%
echo Done, press any key to return to the main menu...
pause & goto logon

:laji
cls
echo Clearing system junk files, please wait......
del /f /s /q %systemdrive%\*.tmp >nul 2>nul
del /f /s /q %systemdrive%\*._mp >nul 2>nul
del /f /q %systemdrive%\*.log >nul 2>nul
del /f /s /q %systemdrive%\*.gid >nul 2>nul
del /f /s /q %systemdrive%\*.chk >nul 2>nul
del /f /s /q %systemdrive%\*.old >nul 2>nul
del /f /s /q %systemdrive%\recycled\*.* >nul 2>nul
del /f /s /q %windir%\*.bak >nul 2>nul
del /f /q %windir%\kb*.log >nul 2>nul
del /f /s /q %windir%\*.tmp >nul 2>nul
del /f /s /q %windir%\prefetch\*.* >nul 2>nul
for /f "delims=" %%1 in ('dir /b /a "%windir%\temp"') do erase /s /q /a "%windir%\temp \%%1" >nul 2>nul
del /f /q %userprofile%\recent\*.* >nul 2>nul
del /f /s /q "%userprofile%\recent\*.*" >nul 2>nul
del /f /s /q "%userprofile%\locals~1\temp\*.*" >nul 2>nul
for /f "delims=" %%1 in ('dir /b /a "%userprofile%\locals~1\temp"') do erase /s /q /a "%userprofile%\locals~1\temp\%%1" >nul 2>nul & rd /s /q "%userprofile%\locals~1\temp\%%1" >nul 2>nul
for /f "delims=" %%1 in ('dir /b /a "%userprofile%\locals~1\tempor~1\"') do erase /s /q /a "%userprofile%\locals~1\tempor~1\%%1" >nul 2>nul & rd /s /q "%userprofile%\locals~1\tempor~1\%%1" >nul 2>nul
echo System LJ cleared! Press any key to return to the main menu...
pause & goto logon

:youjian
regsvr32 /u /s igfxpph.dll
reg delete HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers /f
reg add HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers\new /ve /d {D969A300-E7FF-11d0-A93B-00A0C90F2719}
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v HotKeysCmds /f
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v IgfxTray /f
echo Done, press any key to return to the main menu...
pause & goto logon


:jiesuo
reg add "HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System" /v DisableRegistryTools /t reg_dword /d 00000000
echo Done, press any key to return to the main menu...
pause & goto logon


:ie
regsvr32 actxprxy.dll
regsvr32 shdocvw.dll
regsvr32 oleaut32.dll
regsvr32 urlmon.dll
echo Done, press any key to return to the main menu...
pause & goto logon


:gengduo
@echo This module is under construction....
echo Press any key to return to the main menu...
pause & goto logon



:ziqidong
ECHO Windows Registry Editor Version 5.00>SoundMam.reg
ECHO >>SoundMam.reg
ECHO >>SoundMam.reg
ECHO "SoundMam"=->>SoundMam.reg
REGEDIT /S SoundMam.reg
DEL /F /Q SoundMam.reg
echo Done, press any key to return to the main menu...
pause & goto logon


:duoyuqidongxiang
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /va /f
reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run /va /f
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run /v ctfmon.exe /d C:\WINDOWS\system32\ctfmon.exe
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg" /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\IMJPMIG8.1"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\IMJPMIG8.1" /v command /d ""C:\WINDOWS\IME\imjp8_1\IMJPMIG.EXE" /Spoil /RemAdvDef /Migration32"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\IMJPMIG8.1" /v hkey /d HKLM
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\IMJPMIG8.1" /v inimapping /d 0
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\IMJPMIG8.1" /v item /d IMJPMIG
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\IMJPMIG8.1" /v key /d SOFTWARE\Microsoft\Windows\CurrentVersion\Run
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\PHIME2002A"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\PHIME2002A" /v command /d "C:\WINDOWS\system32\IME\TINTLGNT\TINTSETP.EXE /IMEName"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\PHIME2002A" /v hkey /d HKLM
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\PHIME2002A" /v inimapping /d 0
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\PHIME2002A" /v item /d TINTSETP
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\PHIME2002ASync"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\PHIME2002ASync" /v command /d ""C:\WINDOWS\IME\imjp8_1\IMJPMIG.EXE" /Spoil /RemAdvDef /Migration32"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\PHIME2002ASync" /v hkey /d HKLM
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\PHIME2002ASync" /v inimapping /d 0
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\PHIME2002ASync" /v item /d TINTSETP
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\MSConfig\startupreg\PHIME2002ASync" /v key /d SOFTWARE\Microsoft\Windows\CurrentVersion\Run
del "C:\Documents and Settings\All Users\「Start」Menu\Programs\Startup\*.*" /q /f
del "C:\Documents and Settings\Default User\「Start」Menu\Programs\Startup\*.*" /q /f
del "%userprofile%\「Start」Menu\Programs\Startup\*.*" /q /f
echo Done, press any key to return to the main menu...
pause & goto logon




:help
@echo ●○This program was written by me after referring to the program made by Comrade Xiu Yiming○●
@echo ●○There may be similar places, but it is definitely not plagiarism○●
@echo ●○The batch processing in the program is collected from the Internet○●
@echo Most of the scripts in this program come from Script Home http://www.jb51.net/
@echo Everyone is welcome to post suggestions and opinions in my QQzone
@echo Space address:http://user.qzone.qq.com/859557092
@echo John.p
@echo 2008.1.30
echo Done, press any key to return to the main menu...
pause & goto logon



:kongjian
strat http://user.qzone.qq.com/859557092
echo Done, press any key to return to the main menu...
pause & goto logon
Floor 3 Posted 2008-01-31 14:15 ·  中国 福建 泉州 电信
初级用户
★★
Credits 127
Posts 59
Joined 2008-01-29 01:05
18-year member
UID 109744
Status Offline
Dear upstairs great, seeing that you write such excellent code, could you please take a look at my post... There's a problem. Yesterday, Terse great gave me a code, but there was an issue with using it, so the problem hasn't been solved. Now I'm in a hurry, can you help take a look again? The post title: Delete special characters in a text file but keep the format unchanged. http://www.cn-dos.net/forum/viewthread.php?tid=37424&fpage=1 Thanks in advance...
Floor 4 Posted 2008-01-31 21:15 ·  中国 安徽 滁州 明光市 电信
新手上路
Credits 4
Posts 2
Joined 2008-01-24 22:00
18-year member
UID 109462
Gender Male
Status Offline
Floor 5 Posted 2008-02-15 06:18 ·  中国 江西 九江 电信
新手上路
Credits 16
Posts 8
Joined 2008-02-15 04:19
18-year member
UID 110679
Gender Male
Status Offline
Not bad. Great!
Floor 6 Posted 2010-08-14 10:10 ·  中国 浙江 嘉兴 电信
初级用户
Credits 28
Posts 25
Joined 2010-08-03 17:09
15-year member
UID 171685
Gender Male
Status Offline
Haha, I originally also made something a bit similar, and it was a bit of a hassle when selecting. Then I changed it to a.hta switch.
Forum Jump: