Script ftp connection does not work
The following code does not work, escpecially the Winscp.exe-command (which I excluded once to test and then the files were locally copied from tempfolder right to the myfolder).
What does work:
if I use winscp (or filezila or ...) myself and connect to the ipadress with my user and pw it does work and I can copy the files manually or syncronise them. But the instant I use scripting, it doesn't work. I tried without winscp before, same issue... Has someone a clue what it might be?
Not even the logfile give anything: empty. Even if I couldn't connect it would say something right?
Thanks a lot!
What does work:
if I use winscp (or filezila or ...) myself and connect to the ipadress with my user and pw it does work and I can copy the files manually or syncronise them. But the instant I use scripting, it doesn't work. I tried without winscp before, same issue... Has someone a clue what it might be?
Not even the logfile give anything: empty. Even if I couldn't connect it would say something right?
Thanks a lot!
@echo set TMPPATH="C:\temp\cvstemp" mkdir "%TMPPATH%" winscp.exe /console /log="C:\myfolder\winscp.log" /command "open ftp://user:pw@ipadress/" ^ "get -delete ""IN/*"" ""%TMPPATH%""" ^ "exit" for /r "%TMPPATH%" %%f in ("*.*") do move "%%f" "C:\myfolder\" rd /s /q "%TMPPATH%"