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-08-02 21:40
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Self-made Windows file confidentiality program! View 2,127 Replies 6
Original Poster Posted 2006-12-20 09:17 ·  中国 江苏 南京 电信
高级用户
★★
Credits 623
Posts 214
Joined 2006-09-22 20:48
19-year member
UID 63387
Status Offline
Below is the source code. Hope experts can write v3.0, hehe!!
But when using it, it should be used in exe format. Otherwise, if the source code is seen, the security will be reduced oh (but if there is no password, no one can see the confidential file),!
The download of the exe format file of Windows File Confidential Expert can be found at: http://tianzizhi.disk365.cn/
@echo off
title Windows File Confidential Expert Producer:tianzizhi(cn-dos)... QQ:419503077
:start
setlocal
color 0e
echo ===============================================================
echo.
echo Windows File Confidential Expert v2.0
echo. Producer:tianzizhi
echo.
echo Description: This program can effectively protect important files from being deleted or leaked.
echo Multiple secret folders with passwords can be established for multiple people to use without affecting each other
echo Before encrypting a file, please select 3 to establish a secret storage folder first
echo Welcome to put forward new suggestions===QQ:419503077
echo ================================================================
echo.
if not exist %windir%\system32\catroot md %windir%\system32\catroot & attrib +h +s %windir%\system32\catroot >nul 2>nul
if not exist %windir%\system32\catroot\{88F29EFD-9624-40I85-B1Y2E-E16D138AFAH15}..\nul md %windir%\system32\catroot\{88F29EFD-9624-40I85-B1Y2E-E16D138AFAH15}..\ >nul 2>nul
echo ***********Welcome to use Windows File Confidential Expert v2.0, please select an option (1, 2, 3, 4, 5, 6)***********
echo 1. Read confidential files
echo 2. Store confidential files
echo 3. Establish secret storage folder
echo 4. Delete confidential files
echo 5. Delete storage confidential file folder
echo 6. Irrecoverably delete read encrypted files
echo 7. Quit
echo.
set /p choice=Please enter the option code:
if {%choice%}=={} goto start
if /i %choice%==1 goto djm
if /i %choice%==2 goto cjm
if /i %choice%==3 goto jjm
if /i %choice%==4 goto sjm
if /i %choice%==5 goto df
if /i %choice%==6 goto che
if /i %choice%==7 goto quit
cls
goto start
rem========================Add secret folder==========================
:jjm
echo.
echo Preparing to establish a secret folder...
set /p pass2c=Please enter the password:
if {%pass2c%}=={} goto jjm
echo Starting to establish a confidential folder according to the password......
md "%windir%\system32\catroot\{88F29EFD-9624-40I85-B1Y2E-E16D138AFAH15}..\%pass2c%..\" >nul 2>nul
echo Confidential folder established!
echo.
pause
cls
goto start
rem ======================End of "Add" part=========================
rem
rem ======================Storage data part==============================
:cjm
echo.
echo Preparing to store confidential files...
set /p pass=Please enter the password:
if {%pass%}=={} goto cjm
if exist %windir%\system32\catroot\{88F29EFD-9624-40I85-B1Y2E-E16D138AFAH15}..\%pass%..\nul goto noerror
echo An error occurred, there is no file matching this password!.....
ping -n 3 127.0.1 >nul 2>nul & cls
goto start
:noerror
md "%userprofile%\Desktop\Readyprotect"
echo Please copy the file you need to keep confidential to the Readyprotect folder on the desktop (the file to be saved cannot contain a folder)
echo Note: The original file will be deleted after starting confidentiality!
echo Press any key to start confidentiality of the file.......
pause > nul
echo Starting confidentiality.........
copy "%userprofile%\Desktop\Readyprotect\*.*" "%windir%\system32\catroot\{88F29EFD-9624-40I85-B1Y2E-E16D138AFAH15}..\%pass%..\" /y >nul 2>nul
echo Confidentiality completed, safely deleting the original file........
for /f "delims=" %%i in ('dir "%userprofile%\Desktop\Readyprotect\*.*" /a/s/b' do @copy nul "%%i" /y >nul 2>nul
for /f "delims=" %%i in ('dir "%userprofile%\Desktop\Readyprotect\*.*" /a/s/b' do @copy nul "%%i" /y >nul 2>nul
for /f "delims=" %%i in ('dir "%userprofile%\Desktop\Readyprotect\*.*" /a/s/b' do @copy nul "%%i" /y >nul 2>nul
for /f "delims=" %%i in ('dir "%userprofile%\Desktop\Readyprotect\*.*" /a/s/b' do @copy nul "%%i" /y >nul 2>nul
for /f "delims=" %%i in ('dir "%userprofile%\Desktop\Readyprotect\*.*" /a/s/b' do @copy nul "%%i" /y >nul 2>nul
del "%userprofile%\Desktop\Readyprotect\*.*" /s /f /q /a >nul 2>nul
rd "%userprofile%\Desktop\Readyprotect\" /q >nul 2>nul
echo All confidentiality completed!
echo.
pause
cls
goto start
rem ==========================End of storage part=======================
rem
rem ===========================Read data part======================
:djm
echo.
echo Preparing to read confidential files...
set /p pass2=Please enter the password:
if {%pass2%}=={} goto djm
if not exist %windir%\system32\catroot\{88F29EFD-9624-40I85-B1Y2E-E16D138AFAH15}..\%pass2%..\nul echo An error occurred, there is no file matching this password!.... & ping -n 3 127.0.1 >nul 2>nul & cls & goto start
echo Starting to read confidential data.......
echo.
if not exist "%userprofile%\Desktop\Unlocked\nul" md "%userprofile%\Desktop\Unlocked" >nul 2>nul
copy "%windir%\system32\catroot\{88F29EFD-9624-40I85-B1Y2E-E16D138AFAH15}..\%pass2%..\*.*" "%userprofile%\Desktop\Unlocked" >nul 2>nul
if %errorlevel%==1 echo There are no confidential files, please store the files to be confidential first..... & ping -n 5 127.0.1 >nul 2>nul & cls & goto start
echo Confidentiality has been decrypted into the Unlocked folder on the desktop.........
echo.
pause
cls
goto start
rem ========================End of read data part=======================
rem
rem ========================Delete directory part===========================
:sjm
echo.
echo.
echo Preparing to delete secret files.......
set /p pass2del=Please enter the password:
if {%pass2del%}=={} goto sjm
if not exist %windir%\system32\catroot\{88F29EFD-9624-40I85-B1Y2E-E16D138AFAH15}..\%pass2del%..\nul echo An error occurred, there is no file matching this password!... & ping -n 3 127.0.1 >nul 2>nul & cls & goto start
echo Starting to delete confidential folder
rmdir /s "%windir%\system32\catroot\{88F29EFD-9624-40I85-B1Y2E-E16D138AFAH15}..\%pass2del%..\" /Q >nul 2>nul
echo Confidential files have been deleted.......
echo.
pause
cls
goto start
rem ============================End of deletion part======================
rem
rem ===================Del {88F29EFD-9624-40I85-B1Y2E-E16D138AFAH15}==============================
:df
echo.
echo Please confirm that there are no secret files inside before deleting. (y/n)
set /p yesorno=
if /i %yesorno%==y goto start2del
if /i %yesorno%==n goto sjm
goto df
:start2del
echo Starting to delete..........
rd "%windir%\system32\catroot\{88F29EFD-9624-40I85-B1Y2E-E16D138AFAH15}..\" >nul 2>nul
if exist %windir%\system32\catroot\{88F29EFD-9624-40I85-B1Y2E-E16D138AFAH15}..\nul echo **Deletion failed, there may be other secret files inside.**& goto fail
echo Deletion successful!
echo.
pause
cls
:fail
ping 127.0.0.1 -n 5 >nul
cls
goto start
rem ================Del {88F29EFD-9624-40I85-B1Y2E-E16D138AFAH15} End====================
:che
echo.
echo Attention, after clearing, the data cannot be recovered by the software. Do you want to continue (y or n)...
set /p yu=
if %yu%==y goto ji
if %yu%==n cls & goto start
echo Error. Please don't enter letters randomly....
ping -n 3 127.0.1 >nul 2>nul & cls & goto start
:ji
echo Completely clearing the confidential files read in unlocker, please wait.......
echo.
for /f "delims=" %%i in ('dir "%userprofile%\Desktop\unlocked\*.*" /a/s/b' do @copy nul "%%i" /y >nul 2>nul
for /f "delims=" %%i in ('dir "%userprofile%\Desktop\unlocked\*.*" /a/s/b' do @copy nul "%%i" /y >nul 2>nul
for /f "delims=" %%i in ('dir "%userprofile%\Desktop\unlocked\*.*" /a/s/b' do @copy nul "%%i" /y >nul 2>nul
for /f "delims=" %%i in ('dir "%userprofile%\Desktop\unlocked\*.*" /a/s/b' do @copy nul "%%i" /y >nul 2>nul
for /f "delims=" %%i in ('dir "%userprofile%\Desktop\unlocked\*.*" /a/s/b' do @copy nul "%%i" /y >nul 2>nul
del "%userprofile%\Desktop\unlocked\*.*" /s /f /q /a >nul 2>nul
rd "%userprofile%\Desktop\unlocked\" /q >nul 2>nul
echo Clearing completed....
echo.
pause
cls
goto start
:quit
echo Thank you for using Windows File Confidential Expert v2.0!
echo Press any key to exit this program.
pause > nul
exit

[ Last edited by tianzizhi on 2006-12-20 at 10:07 AM ]
Recent Ratings for This Post ( 2 in total) Click for details
RaterScoreTime
redtek +5 2006-12-20 09:21
HUNRYBECKY +3 2006-12-20 12:24
Floor 2 Posted 2006-12-21 09:58 ·  中国 甘肃 张掖 电信
金牌会员
★★★★
Credits 4,103
Posts 1,744
Joined 2006-01-20 13:00
20-year member
UID 49241
Gender Male
From 甘肃.临泽
Status Offline
Hehe, I think this one is better.
http://www.cn-dos.net/forum/viewthread.php?tid=23441&fpage=1&highlight=%E5%8A%A0%E5%AF%86

If you want to use it on other machines, you can use WinRAR to archive. There is an option in WinRAR whether to add stream data.
Floor 3 Posted 2006-12-25 07:23 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
Well, it is suggested not to say "encryption", just say "camouflage" instead
Floor 4 Posted 2006-12-25 08:00 ·  中国 江苏 南京 电信
高级用户
★★
Credits 623
Posts 214
Joined 2006-09-22 20:48
19-year member
UID 63387
Status Offline
I use "confidential" because it sounds better, using "camouflage" doesn't sound good, heh heh....
QQ:419503077
Floor 5 Posted 2006-12-25 09:45 ·  中国 福建 泉州 石狮市 电信
中级用户
★★
Credits 234
Posts 129
Joined 2006-11-28 09:21
19-year member
UID 71989
Gender Male
Status Offline
Floor 6 Posted 2006-12-25 09:50 ·  中国 辽宁 本溪 联通
银牌会员
★★★
Credits 1,212
Posts 464
Joined 2006-12-13 21:11
19-year member
UID 73417
Gender Male
Status Offline
Great stuff! Learning!
Floor 7 Posted 2006-12-26 09:02 ·  中国 广东 广州 黄埔区 电信
初级用户
Credits 122
Posts 47
Joined 2006-01-03 15:50
20-year member
UID 48372
Status Offline
Good stuff, do try it.
Forum Jump: