What Kind of Programmation Language?[Bloc Note]
#1

Hey , i recently saw programmation code we can put in the bloc note the register it as "Name.bat" , and whene we run it , it protect our folders/Movies..... by a chosen Password (here the pass is 123456) , here is the code:
Код:
cls
@ECHO OFF
title Folder Private
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Private goto MDLOCKER
:CONFIRM
echo Etes vous sure de vouloir bloquer les fichiers Y=Oui N=Non(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 Private "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked
goto End
:UNLOCK
echo Unable to confure CMD here :
set/p "pass=>"
if NOT %pass%== 123456 goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Private
echo Bien Bloquer GG
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Private
echo Private created successfully
goto End
:End
So witch language we use in the bloc note ? (C or ...)
Reply
#2

Pretty sure its MS-DOS.
Reply
#3

Really? thanks i will learn something about it ..
Reply
#4

Windows batch file. (hence .bat)

http://en.wikipedia.org/wiki/Batch_file
Reply
#5

blewer , thanks for youe answer but i'm not speaking about the extension (.bat .exe or what ever) , i'm speaking about the programmation language used in the code
Reply
#6

Quote:
Originally Posted by Saw®
Посмотреть сообщение
blewer , thanks for youe answer but i'm not speaking about the extension (.bat .exe or what ever) , i'm speaking about the programmation language used in the code
Yeah. The language is called "Batch". Hence its a batch-file (.bat)
Reply
#7

They're basically a combination of commands you actually execute when using windows.*

*Though usally you're able to do more advanced stuff using the command line, or in this case DOS, think of it as a terminal in linux distros and thus the .sh script varient for Windows if that makes it any clearer for you.
Reply
#8

Nevermind
Reply
#9

Oh i see sorry belewrt, and thanks to Wanted1900 & kaisersouse & PlayBox + Blewert and anyone who tryed to help me .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)