Foro de elhacker.net

Programación => Scripting => Mensaje iniciado por: T.S.A en 4 Agosto 2017, 11:16 am



Título: Wireless networking watcher guardar en txt
Publicado por: T.S.A en 4 Agosto 2017, 11:16 am
Hola, Tengo un programa llamado WIRELESS NETWORK WATCHER, y esto escanea  todos los hosts que están conectados a mi WiFi, pero estoy haciendo un script(.bat) para que me redireccione todos esos datos  a un archivo(.txt), ya probé con programa.exe > archivo.txt y también con programa.exe /b >> archivo.txt, por favor que alguien me ayuda, les agradezco de antemano.
Saludos
no rompas las reglas del foro

No hagas doble post, el otro tema fue borrado
No escribas títulos en mayúsculas
Los títulos deben ser descriptivos
Cada tema tiene su subforo



Título: Re: SCRIPTS
Publicado por: Eleкtro en 4 Agosto 2017, 13:27 pm
...¿Y no se te ha ocurrido pararte a leer el modo de empleo en la página oficial del programa antes de descargarlo, y/o abrir el archivo de ayuda que viene incluido con el programa y/o el archivo readme.txt?... tres ubicaciones distintas donde te explican como se hace lo que necesitas. A ver si aprendemos que para algo existen esos archivos... y que hay que buscar con cabeza en el lugar más obvio antes de preguntar...

Cita de: http://www.nirsoft.net/utils/wireless_network_watcher.html
Command-Line Options
====================

/cfg <Filename>
Start Wireless Network Watcher with the specified configuration file. For example:
WNetWatcher.exe /cfg "c:\config\wnw.cfg"
WNetWatcher.exe /cfg "%AppData%\WNetWatcher.cfg"


/stext <Filename>
Scan your network, and save the network devices list into a regular text file.


/stab <Filename>
Scan your network, and save the network devices list into a tab-delimited text file.

/scomma <Filename>
Scan your network, and save the network devices list into a comma-delimited text file (csv).

/stabular <Filename>
Scan your network, and save the network devices list into a tabular text file.

/shtml <Filename>
Scan your network, and save the network devices list into HTML file (Horizontal).

/sverhtml <Filename>
Scan your network, and save the network devices list into HTML file (Vertical).

/sxml <Filename>
Scan your network, and save the network devices list into XML file.



ya probé con programa.exe > archivo.txt

Los operadores de redirección de streams de salida ( n>"Archivo.txt" ) se deben usar con aplicaciones command-line (CLI), no con interfaces gráficas (GUI). Esa aplicación es una GUI que acepta argumentos command-line, simplemente.

Saludos