2017-03-25 5 views

Antwort

2

Zum Beispiel verwende ich eine kleine Funktion in Powershell und mit einer Batch-Datei kann ich eine Datei wie diese herunterladen:

@echo off 
Set "URL=http://www.kcc.edu/campaigns/PublishingImages/poh.jpg" 
Set "File=%USERPROFILE%\Pictures\Hello.png" 
Call :Download "%URL%" "%File%" 
Start "" "%File%" 
exit 
::********************************************************************************** 
:Download <url> <File> 
Powershell.exe -command "(New-Object System.Net.WebClient).DownloadFile('%1','%2')" 
exit /b 
::********************************************************************************** 

Hier ist ein weiteres Beispiel, in dem ich die gleiche Funktion verwendet, um das Tool zum Download genannt VirusTotal Uploader von Virustotal.com zum Hochladen und Überprüfen von Dateien.

Scan_Registry_Virustotal.bat

1

Check this.

mit BITSAdmin:

bitsadmin /transfer myDownloadJob /download /priority normal http://downloadsrv/jpg.jpg "%userprofile%\pictures\jpg.jpg" 

mit winhttpjs.bat:

call winhhtpjs.bat https://example.com/files/jpg.jpg -saveTo "%userprofile%\pictures\jpg.jpg" 

Jeder Benutzer Bilder Verzeichnis in %userprofile%\pictures

Verwandte Themen