stoffn
Goto Top

Wget unter Windows, Speichern auf NAS

Hallo! Ich möchte von einem Fileserver täglich oder wöchentlich (manuell) etwas herunterladen.
Es geht dabei um mehrere Dateien auf unterschiedlichen Adressen, welche auch in verschiedene Ordner gespeichert werden sollen.
Daher wollte ich wget nehmen. Ich nutze Windows, daher hab ich mir das für Windows besorgt. Funktioniert ja auch so weit.
Lädt die Datei runter und schreibt die auch in den Ordner, wie ich ihn angebe. Aber ich komme einfach nicht auf die NAS drauf. Ich habe alle möglichen Pfade probiert.

C:\Program Files (x86)\GnuWin32\bin>wget http://<fileserverip>/<datei.exe> -P "//<NASip>/Ordner/"

Kann nicht schreiben, wegen invalid argument. Ich verstehe nicht, wie ich mit wget was auf einer NAS speichern kann. Lokal funktioniert.

Content-Key: 314728

Url: https://administrator.de/contentid/314728

Printed on: April 19, 2024 at 14:04 o'clock

Mitglied: 127103
127103 Sep 08, 2016 at 09:35:21 (UTC)
Goto Top
Hi,

ist der Benutzerkontext in welchem wget ausgeführt wird mit dem Butzer identisch welcher Zugriifsberechtigung auf das NAS share hat?
Welches Dateisystem hat der Ordner auf der NAS?

Gruß c
Mitglied: 129813
129813 Sep 08, 2016 updated at 10:22:03 (UTC)
Goto Top
Hi,
you don't need an extra tool like wget for downloading files. You can use batch and powershell to do this without extra tools:
powershell -Executionpolicy ByPass -Command "iwr -Uri 'http://www.domain.com/file.exe' -OutFile '\\NAS\Folder\file.exe'"  
or if only PS 2.0 is installed use the webclient object:
powershell -Executionpolicy ByPass -Command "(New-Object System.Net.WebClient).DownloadFile('http://www.domain.com/file.exe','\\NAS\Folder\file.exe')"  
Regards
Member: Stoffn
Stoffn Sep 08, 2016 at 12:44:37 (UTC)
Goto Top
Ja, ist der gleiche User.
Member: Stoffn
Stoffn Sep 08, 2016 at 12:47:57 (UTC)
Goto Top
I wanted to use it with Windows 7 or 8. I got Windows Server only as an VM. And wget seemed a bit easier to handle, to be honest.
But I can give it a try, thanks!
Member: clubmaster
clubmaster Sep 09, 2016 at 09:30:47 (UTC)
Goto Top
Funktioniert bei mir mit wget --no-check-certification (wg.HTTPS)

-O Output
\\ Smb-Share\Verzeichnis$