elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.
 
Inicio Ayuda Buscar Ingresar Registrarse
29 Mayo 2012, 09:17  


Tema destacado: Grupo de Facebook de elhacker.net

+  Foro de elhacker.net
|-+  Programación
| |-+  Scripting (Moderadores: Novlucker, Leo Gutiérrez., EleKtro H@cker)
| | |-+  [Perl] Funcion hideit()
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: [Perl] Funcion hideit()  (Leído 97 veces)
Doddy

Desconectado Desconectado

Mensajes: 220



Ver Perfil
[Perl] Funcion hideit()
« en: 12 Octubre 2011, 16:43 »

Con esta funcion podran esconder o mostraR archivos/directorios ocultos en windows

Código
#By Doddy H
use Win32::File;
 
sub hideit {
if ($_[1] eq "show") {
Win32::File::SetAttributes($_[0],NORMAL);
}
elsif ($_[1] eq "hide") {
Win32::File::SetAttributes($_[0],HIDDEN);
}
else {
print "error\n";
}
}
 

Ejemplo de uso show/hide

Código
hideit("test.pl","show");
 
 


En línea

Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
[Perl] Funcion wormer()
Scripting
Doddy 0 105 Último mensaje 10 Octubre 2011, 16:51
por Doddy
[Perl] Funcion writeword()
Scripting
Doddy 0 154 Último mensaje 10 Octubre 2011, 16:52
por Doddy
[Perl] Funcion movewin()
Scripting
Doddy 0 115 Último mensaje 11 Octubre 2011, 18:08
por Doddy
[Perl] Funcion killprocess()
Scripting
Doddy 0 148 Último mensaje 11 Octubre 2011, 18:09
por Doddy
[Perl] Funcion printear()
Scripting
Doddy 0 397 Último mensaje 11 Octubre 2011, 18:10
por Doddy
Powered by SMF 1.1.16 | SMF © 2006-2008, Simple Machines