Ordner mit Unterordner per Batch auf FTP
upload.bat
@echo off
echo Starte
cd\
%2
cd %1
ftp -i -s:%1upload.ftp
echo Fertig
pause
upload.ftp
open ip
user
pass
cd html/verz
ASCII
mput C:\123\*.*
bye
Mein Problem ist, dass wenn es Unterordner in dem Ordner 123 gibt, dass Script einen Fehler ausgibt. Wie kann man die denn auch mitkopieren?
@echo off
echo Starte
cd\
%2
cd %1
ftp -i -s:%1upload.ftp
echo Fertig
pause
upload.ftp
open ip
user
pass
cd html/verz
ASCII
mput C:\123\*.*
bye
Mein Problem ist, dass wenn es Unterordner in dem Ordner 123 gibt, dass Script einen Fehler ausgibt. Wie kann man die denn auch mitkopieren?
Please also mark the comments that contributed to the solution of the article
Content-Key: 75011
Url: https://administrator.de/contentid/75011
Printed on: April 18, 2024 at 02:04 o'clock
2 Comments
Latest comment