Home » Technology » BAT

BAT

  • What is BAT? BAT File Creation and BAT File Encryption
  • BAT  is a script file located in Windows, DOS and OS / 2 operating systems. This file contains the commands that come after it and help to do the operation. The Bat files, which can be used by the programmers for advanced functions, can also be created by amateur computer users.

 

  • BAT File Creation
  • To create a file with a .bat extension on your computer, first switch to the Desktop, then right-click in the mouse and select New Text Document under New tab. Login to the text document you created and click Save As from the File tab. Then type the name of the .bat file you want to create and change the .txt extension at the end to .bat. When you save this operation, your .bat file will be ready.

 

cls
@ECHO OFF
title Cyber Attack Weapon System
if EXIST “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” goto UNLOCK
if NOT EXIST Hidden goto MDHidden
:CONFIRM
echo Are you sure to lock this folder? (Y/N)
set/p “cho=>”
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto CONFIRM
:LOCK
ren Hidden “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
attrib +h +s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
echo Folder locked
goto End
:UNLOCK
echo Enter password to Unlock Your Secure Folder
set/p “pass=>”
if NOT %pass%== 1234 goto FAIL
goto UNLOCK2
:UNLOCK2
CLS
echo Enter password to Unlock Your Secure Folder
set/p “pass=>”
if NOT %pass%== 1234 goto FAIL
attrib -h -s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
ren “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” Hidden
echo Folder Unlocked successfully
goto End
:Fail
@echo off
color 02
echo Warning-Virus Initiated total hardrive corruption imminent
timeout /t 5 /nobreak >nul

set count= 0
:tricks
if %count% == 200 goto shutdown
echo %random%%random%%random%%random%%random%%random%%random%%random%
set /a count=%count%+1
goto tricks
:shutdown
cls

:shutdown
shutdown -s -t 45 /c “You have tried to acces a file that is not yours. Good-Bye.”
echo Enter password Start Abort Sequence
set/p “pass=>”
if NOT %pass%== 1234 goto shutdown
echo Abort Inittiated
goto Abort
:Abort
C:WindowsSystem32shutdown.exe -a
Abort Successful
timeout /t 3 /nobreak >nul
CLS
goto unlock

goto end
:MDHidden
md Hidden
echo Hidden created successfully

 

 

 

 

 

  • BAT File Encryption
  • One of the most common uses of the Bat file is to be able to perform encryption without the need for an external program. To perform encryption with the Bat file, first create a new text document. Then paste all of the codes below into the text document that you created;

 

 

  • Now use this code to set your own password to 1234 in if NOT% pass% == 1234 goto. “Hidden” in the code is the name of the folder. Change the name of this folder according to the folder you want to use again. In the last step, save the file in the Save as option and save the .bat extension as the last.
BAT
Author: wik Date: 1:18 am
Technology


Wik's Random Content