keep getting "system cannot find path" error while using keepuptodate

Advertisement

dominik
Donor
Joined:
Posts:
18

keep getting "system cannot find path" error while using keepuptodate

Dear forists,
I start connection with a .bat file:
"C:\Program Files (x86)\WinSCP\winscp.com" /script="C:\Users\dlenn\Arbeit\Webdesign und Computerhilfe\Kunden - aktiv\Henriette\butoh-tanz-keepuptodate.wscp"
With the following content in butoh-tanz-keeputodate.wscp:
open ftp://uname:password@ip-address
keepuptodate "C:\Users\dlenn\Arbeit\Webdesign und Computerhilfe\Kunden – aktiv\Henriette\Spiegel\test" /httpdocs/butoht/test/
The connection is made and i keep getting the following message (excerpt from log file)
...
< 2021-02-08 16:06:34.897 Script: Veränderungen in 1 Verzeichnissen werden überwacht …
. 2021-02-08 16:06:34.899 Keep up to date: Veränderungen in 1 Verzeichnissen werden überwacht …
. 2021-02-08 16:06:34.899 Session upkeep
< 2021-02-08 16:06:34.900 Script: Fehler bei der Änderungsüberwachung im Verzeichnis „C:\Users\dlenn\Arbeit\Webdesign und Computerhilfe\Kunden – aktiv\Henriette\Spiegel\test“.
< 2021-02-08 16:06:34.903 Script: Systemfehler. Code: 3.
 
< 2021-02-08 16:06:34.903 Das System kann den angegebenen Pfad nicht finden
. 2021-02-08 16:06:34.905 Session upkeep
. 2021-02-08 16:06:34.907 Session upkeep
. 2021-02-08 16:06:34.907 Script: Exit code: 1
. 2021-02-08 16:06:34.908 Script: Max roundtrip: 15
. 2021-02-08 16:06:34.909 Got reply 1004 to the command 16
. 2021-02-08 16:06:34.912 Verbindung zum entfernten Rechner abgebrochen
I triple checked, that the respective directoriy is existing and has a file in it.
I ran out of ideas where to look, thankful for any hint.

Reply with quote

Advertisement

dominik
Donor
Joined:
Posts:
18

bad, but invisible formatting of path string

I found the cause. The local path string
C:\Users\dlenn\Arbeit\Webdesign und Computerhilfe\Kunden - aktiv\Henriette\Spiegel\test
had a bad, but invisible formatting on it. Not visible in windows editor.
I realized this when trying to copy it into the path field of windows explorer, which resulted in a "path not found"-error. I then went by hand into the directory and copypasted the path string out of the explorer path field into the script (which looked exactly the same!) but made the script suddenly work.
I had previously believed, that w10 editor strips all strings off any formatting, but this seem to be not the case. Hm.
Maybe this will help some other poor guy.

Reply with quote

Advertisement

You can post new topics in this forum