Guest User

Untitled

a guest
Apr 26th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 1.30 KB | None | 0 0
  1. @echo off
  2.  
  3. cd %userprofile%\Desktop
  4.  
  5. echo This Batch file can be used to hide texts or secret messages
  6.  
  7. echo in any other file on your Desktop.
  8.  
  9. echo.
  10.  
  11. echo It can be used in images, compressed files, etc.
  12.  
  13. echo.
  14.  
  15. echo Press any key to continue.
  16.  
  17. pause > nul
  18.  
  19. :A
  20.  
  21. cls
  22.  
  23. echo Select the file in which the message will be hidden.
  24.  
  25. echo.
  26.  
  27. echo Type the name and extention of the file and press ENTER.
  28.  
  29. echo Example: image.jpg
  30.  
  31. echo.
  32.  
  33. set /p name=
  34.  
  35. if exist %name% goto B
  36.  
  37. cls
  38.  
  39. echo The specified file does not exist on your Desktop.
  40.  
  41. echo.
  42.  
  43. echo Press any key to go back to the previous screen.
  44.  
  45. pause > nul
  46.  
  47. goto A
  48.  
  49. :B
  50.  
  51. cls
  52.  
  53. echo The file was successfully selected!
  54.  
  55. echo.
  56.  
  57. :C
  58.  
  59. echo Type or paste the text to be hidden on the file and press ENTER.
  60.  
  61. echo.
  62.  
  63. set /p text=
  64.  
  65. cls
  66.  
  67. echo The text to be hidden is:
  68.  
  69. echo.
  70.  
  71. echo %text%
  72.  
  73. echo.
  74.  
  75. echo Is the text correct? (Y/N)
  76.  
  77. set /p text?=
  78.  
  79. cls
  80.  
  81. if %text?%==N goto C
  82.  
  83. if %text?%==n goto C
  84.  
  85. set file=%random%-%random%-%random%.txt
  86.  
  87. echo. > %file%
  88.  
  89. echo. >> %file%
  90.  
  91. echo %text% >> %file%
  92.  
  93. copy /b %name% + %file% modified-%name%
  94.  
  95. del /F /S /Q %file%
  96.  
  97. cls
  98.  
  99. echo All done!
  100.  
  101. echo The file modified-%name% was created on your Desktop.
  102.  
  103. echo.
  104.  
  105. echo Press any key to exit.
  106.  
  107. pause > nul
  108.  
  109. exit
Add Comment
Please, Sign In to add comment