[source] download.bat

Postagem de conteúdos sobre programação shell scripts
Post Reply
User avatar
Kodo no Kami
Admin
Admin
Posts: 727
Joined: Fri Jan 02, 2015 1:56 pm
Contact:

[source] download.bat

Post by Kodo no Kami » Fri Sep 21, 2018 6:52 pm

fazer download usando batch script

Code: Select all

@echo off
echo "<script>var kodo = document.createElement( 'a' ); var kodo_h = document.createAttribute( 'href' ); kodo_h.value = '%1'; var kodo_d = document.createAttribute( 'download' ); kodo_d.value = 'kodo.html' ; kodo.setAttributeNode(kodo_h); kodo.setAttributeNode(kodo_d); kodo.click(); </script>" > paginatemp.html
start paginatemp.html
Image

que desagradavel ~ mirai kuriyama

Post Reply

Return to “Batch / Bash / SH”