Solved!
As Martin said, the problem has been discussed on Stack Overflow and finally solved
.lnk
file I've always used
"C:\Program Files (x86)\WinSCP\WinSCP.exe" "Typed" /defaults /keepuptodate // "C:\Xampp\htdocs\my\folder\path" /my/server/path
.txt
files from that sync, because WinSCP causes the logs on my host to be deleted (they are updated on the server but remain blank on localhost, so the sync function deletes them when I start the file).
"C:\Program Files (x86)\WinSCP\WinSCP.exe" "Typed" /defaults /keepuptodate // "C:\Xampp\htdocs\my\folder\path" /my/server/path /parameter // "-filemask=|*.txt"