Initial Release Batch Version

This commit is contained in:
Joey Pillunat-Klebb | OH5 2025-11-03 15:44:27 +01:00
commit c1383fcd0c
26 changed files with 1783 additions and 0 deletions

View file

@ -0,0 +1,26 @@
# HP FTP URL
$ftpUrl = "ftp://ftp.hp.com/pub/softlib/software13/printers/UPD/"
# Erstelle die FTP-Anfrage
$ftpRequest = [System.Net.WebRequest]::Create($ftpUrl)
$ftpRequest.Method = [System.Net.WebRequestMethods+Ftp]::ListDirectory
try {
# Antwort holen
$response = $ftpRequest.GetResponse()
$stream = $response.GetResponseStream()
$reader = New-Object System.IO.StreamReader($stream)
Write-Host "🔍 Durchsuche FTP-Ordner: $ftpUrl"
# Dateien auflisten
while ($line = $reader.ReadLine()) {
Write-Host "📄 Gefunden: $line"
}
# Ressourcen freigeben
$reader.Close()
$response.Close()
} catch {
Write-Host "❌ Fehler: Zugriff auf den FTP-Server nicht möglich!"
}