Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- cd %userprofile%\Desktop
- echo This Batch file can be used to hide texts or secret messages
- echo in any other file on your Desktop.
- echo.
- echo It can be used in images, compressed files, etc.
- echo.
- echo Press any key to continue.
- pause > nul
- :A
- cls
- echo Select the file in which the message will be hidden.
- echo.
- echo Type the name and extention of the file and press ENTER.
- echo Example: image.jpg
- echo.
- set /p name=
- if exist %name% goto B
- cls
- echo The specified file does not exist on your Desktop.
- echo.
- echo Press any key to go back to the previous screen.
- pause > nul
- goto A
- :B
- cls
- echo The file was successfully selected!
- echo.
- :C
- echo Type or paste the text to be hidden on the file and press ENTER.
- echo.
- set /p text=
- cls
- echo The text to be hidden is:
- echo.
- echo %text%
- echo.
- echo Is the text correct? (Y/N)
- set /p text?=
- cls
- if %text?%==N goto C
- if %text?%==n goto C
- set file=%random%-%random%-%random%.txt
- echo. > %file%
- echo. >> %file%
- echo %text% >> %file%
- copy /b %name% + %file% modified-%name%
- del /F /S /Q %file%
- cls
- echo All done!
- echo The file modified-%name% was created on your Desktop.
- echo.
- echo Press any key to exit.
- pause > nul
- exit
Add Comment
Please, Sign In to add comment