Symbianize Forum

Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.

All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!

[help] folderlock.bat patulong po!

smartc123

Amateur
Advanced Member
Messages
116
Reaction score
0
Points
26
pa help po mga master kung alam nyo po yung folder locker.bat gusto ko po kasi naka **** yung password pag ineenter ko.


eto po yung code nya....

cls
@ECHO OFF
title Folder Locker
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Locker goto MDLOCKER
:CONFIRM
echo Are you sure u want to Lock the 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 Locker "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked
pause
goto End
:UNLOCK
echo Enter password to Unlock folder
set/p "pass=>"
if NOT %pass%==12345678 goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Locker
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Locker
echo Locker created successfully
pause
goto End
:End


Thanks
 
cls
@ECHO OFF
title Folder Locker
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Locker goto MDLOCKER
:CONFIRM
echo Are you sure u want to Lock the 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 Locker "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked
pause
goto End
:UNLOCK
:HInput
SetLocal DisableDelayedExpansion
Echo Enter your password below:
Set "Line="
Rem Save 0x08 character in BS variable
For /F %%# In (
'"Prompt;$H&For %%# in (1) Do Rem"'
) Do Set "BS=%%#"
:HILoop
Set "Key="
For /F "delims=" %%# In (
'Xcopy /L /W "%~f0" "%~f0" 2^>Nul'
) Do If Not Defined Key Set "Key=%%#"
Set "Key=%Key:~-1%"
SetLocal EnableDelayedExpansion
If Not Defined Key Goto :HIEnd
If %BS%==^%Key% (Set /P "=%BS% %BS%" <Nul
Set "Key="
If Defined Line Set "Line=!Line:~0,-1!"
) Else Set /P "=*" <Nul
If Not Defined Line (EndLocal &Set "Line=%Key%"
) Else For /F delims^=^ eol^= %%# In (
"!Line!") Do EndLocal &Set "Line=%%#%Key%"
Goto :HILoop
:HIEnd
if NOT %Line%==12345678 goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Locker
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Locker
echo Locker created successfully
pause
goto End
:End
ganto ba ts? nice trick ah. pero discoverable pa din pala sya pag nag dir /ah ako.
 
wala naman "password" field sa command prompt
 
pwede yan sa console sir, try nyu yung code.
 
nice thanks sir galing nyo po soapboy haha

- - - Updated - - -

wala naman "password" field sa command prompt

wala nga sir eh. pwede na yung sir di naman alam ng iba yun. haha


e sir karagdagan lang baka alam nyo din kung paano mag change pass gamit yan. Wala kasi akong alam sa programming e baka akala mo nag papaspoon feed ako nagtitingin din ako sa net wala akong makitang maayos na instructions hehe.. Thanks sir.
 
Last edited:
nge..hehe hanapin mo yung 12345678 sa code, wag mo lagyan ng space in between sa gusto mong password.
 
Last edited:
nge..hehe hanapin mo yung 12345678 sa code, wag mo lagyan ng space in between sa gusto mong password.

yung sanang sa console mo ppalitan ang password niya? pwede ba yun?
 
nope, kasi naka-declare sya dun sa file mo as a FIXED VALUE, so para mapalitan yan, ay kailangan nya muna i-access yung sarili nya, i-edit yung line na yun, then save, then re-run ng program. Eh di ba sa windows, hindi ka pwede mag-edit kapag open yung file na gusto mo i-edit?
 
yung sanang sa console mo ppalitan ang password niya? pwede ba yun?

tama si sir jsk... pero possible yung sinasabi mo, i savesave sa another file ang password then read and all that. mejo mahaba haba yun, tamad na ko, tingin ko nows the time para mag aral ka na ng programming dude, kaya mo yan.
 
Back
Top Bottom