SA-MP Forums Archive
What Kind of Programmation Language?[Bloc Note] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Other (https://sampforum.blast.hk/forumdisplay.php?fid=7)
+--- Forum: Everything and Nothing (https://sampforum.blast.hk/forumdisplay.php?fid=23)
+--- Thread: What Kind of Programmation Language?[Bloc Note] (/showthread.php?tid=350733)



What Kind of Programmation Language?[Bloc Note] - Saw® - 13.06.2012

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 ...)


Re: What Kind of Programmation Language?[Bloc Note] - Wanted1900 - 13.06.2012

Pretty sure its MS-DOS.


Re: What Kind of Programmation Language?[Bloc Note] - Saw® - 13.06.2012

Really? thanks i will learn something about it ..


Re: What Kind of Programmation Language?[Bloc Note] - blewert - 13.06.2012

Windows batch file. (hence .bat)

http://en.wikipedia.org/wiki/Batch_file


Re: What Kind of Programmation Language?[Bloc Note] - Saw® - 13.06.2012

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


Re: What Kind of Programmation Language?[Bloc Note] - kaisersouse - 13.06.2012

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)


Re: What Kind of Programmation Language?[Bloc Note] - playbox12 - 13.06.2012

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.


Re: What Kind of Programmation Language?[Bloc Note] - -CaRRoT - 13.06.2012

Nevermind


Re: What Kind of Programmation Language?[Bloc Note] - Saw® - 14.06.2012

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