P
P
Pavel2020-02-18 11:30:30
cmd/bat
Pavel, 2020-02-18 11:30:30

How to write paths in an external file?

I have such a script for file synchronization, ala backup, written for WinSCP, which synchronizes files via ftp / sftp

SET server=/home/
"%APPDATA%\WinSCP\WinSCP.com" ^
  /log="%APPDATA%\WinSCP\WinSCP.log" /ini=nul ^
  /command ^
    "open sftp://данные для входа/" ^
  "cd %server%"^
  "option batch continue"^
  "mkdir %userfolder%"^
  "synchronize remote %APPDATA%\ViberPC %server%/%userfolder%/" ^
  "synchronize remote %APPDATA%\Yandex %server%/%userfolder%/" ^
  "option batch abort"^
    "exit"


the question is, I want to add and remove paths for synchronization not in this file, I would like to just add the code in another file, for example,
code 1 file
code 1 file
code 1 file
link to file No. 2 in which part of the code
code 1 file
1 file code

does this exist or am I screwed up?)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question