Ŧá๒i๏ รilvค™ 491 Posted July 18, 2012 Trancar Pastas Modo muito simples de protejer a suas pastas com senha, sem precisa de nenhum programa. Crie uma pasta onde quiser com qualquer nome dentro dessa pasta, crie um arquivo .txt com o seguinte comando: 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 Are you sure you 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 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 Enter password to unlock folder set/p "pass=>" if NOT %pass%== senha aqui goto FAIL attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Private echo Folder Unlocked successfully goto End :FAIL echo Invalid password goto end :MDLOCKER md Private echo Private created successfully goto End :End Ou se preferir em português: Lembrando que usa em inglês ou Portugues nunca os dois juntos. O resultado é o mesmo só muda o idioma . 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 Voce quer q a pasta seja bloqueada?(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 Coloque a senha para desbloquear!!! set/p "pass=>" if NOT %pass%== guispode goto FAIL attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Private echo A pAsTa FoI dEsBlOkEaDa goto End :FAIL echo SeNhA ERRADA!! goto end :MDLOCKER md Private echo A Pasta Private foi criada com suçesso goto End :End Lá na 23ª linha está escrito 'senha aqui' troque esse 'senha aqui' por uma senha que voce queira ficando a linha assim: if NOT %pass%== senha goto FAIL ta, agora vai la em Salvar Como e salva com locker.bat ok.. voltando pra pasta onde foi salvo o arquivo bat abra o arquivo 'locker.bat' e irá aparecer uma pasta chamada 'Private' essa será a pasta que ficará escondida e só será aberta com a senha que voce escolheu. depois d ter criado a pasta 'Private', clique novamente sobre o arquivo 'locker.bat' e irá aparecer a janelinha do Dos .. a seguinte pergunta será feita: Are you sure you want to lock the folder(Y/N) digite Y e dê enter. repare agora q a pasta 'Private' desapareceu... ela está agora oculta e só será aberta qndo clicar novamente no arquivo 'locker.bat', pois aí será solicitada a senha, com a seguinte frase: Enter password to unlock folder aí vc digita a senha e já aparece a pasta! espero ter contribuído ai, abraço 7 f430, André Rochato, BigJoke and 4 others reacted to this Share this post Link to post Share on other sites
André Rochato 253 Posted July 18, 2012 tranque e oculte o fabio...Bom topico mano http://cyber-gamers.org/public/style_emoticons/default/451960.gif :D Share this post Link to post Share on other sites
Ŧá๒i๏ รilvค™ 491 Posted July 18, 2012 Obrigado! 2 darksoul and GunTL reacted to this Share this post Link to post Share on other sites
f430 41 Posted July 18, 2012 Nice!! http://cyber-gamers.org/public/style_emoticons/default/451960.gif Share this post Link to post Share on other sites
Ƭiαgѳ ઽαทƬѳઽ 188 Posted July 18, 2012 Código copiado da net ;), já vi isto há muito tempo ;) Share this post Link to post Share on other sites
Ŧá๒i๏ รilvค™ 491 Posted July 18, 2012 Lol não era inventado^^ Vocês também são cá uns mesquinhas do caralho o que é que tens haver com isso? Foste tu que criaste o código?? Ao menos eu "copio" um código e dou me ao trabalho de fazer um tópico para ajuda já outros como tu passam aqui os dias a coçar a micouse.... 3 GunTL, darksoul and Valenza reacted to this Share this post Link to post Share on other sites
GunTL 339 Posted July 18, 2012 Gostei continua feio http://cyber-gamers.org/public/style_emoticons/default/451960.gif 2 Ŧá๒i๏ รilvค™ and darksoul reacted to this Share this post Link to post Share on other sites
Ŧá๒i๏ รilvค™ 491 Posted July 18, 2012 Obrigado :D 1 darksoul reacted to this Share this post Link to post Share on other sites
Ƭiαgѳ ઽαทƬѳઽ 188 Posted July 18, 2012 Desculpa mas o que disseste a cima é para mim ? é que se é tiro-te já as manias sim ? bom... Share this post Link to post Share on other sites
Ŧá๒i๏ รilvค™ 491 Posted July 18, 2012 Para não haver confusões retirei o código do "Google" não me perguntem quem foi o criador desse código porque não sei e é muito dificil de saber... 1 darksoul reacted to this Share this post Link to post Share on other sites
яэ∂вэяяý 543 Posted July 21, 2012 que cena continua :DD muito fixe http://cyber-gamers.org/public/style_emoticons/default/451960.gif Share this post Link to post Share on other sites
thecrazy 1,193 Posted July 22, 2012 Bom tópico, http://cyber-gamers.org/public/style_emoticons/default/451960.gif Share this post Link to post Share on other sites
BigJoke 71 Posted July 23, 2012 muito bom , http://cyber-gamers.org/public/style_emoticons/default/451960.gif Share this post Link to post Share on other sites
Annie 1,207 Posted April 23, 2014 Tópico colocado em Área Incorreta Movido de Hardwares - Tutoriais para Softwares - Guias e Tutoriais Share this post Link to post Share on other sites