Pause for auto update

Advertisement

Toadmyster
Joined:
Posts:
5

Pause for auto update

Is there a way to pause the auto update. I have audio files that automatically record clips in 15 minute intervals. I would like the auto update to pause while the audio file is finished being recorded. The auto update is detecting a change every 2 seconds, uploads the file, then keeps detecting the change as the file has not finished recording.

Reply with quote

Advertisement

Toadmyster
Joined:
Posts:
5

So it should look like this?

bat file:
:Loop
winscp.com /script=script.txt ^
    "option batch abort" ^
    "open <session>" ^
    "synchronize remote <local directory> <remote directory>" ^
    "exit"
timeout 10
goto :Loop

txt file:
open sftp://user:password@webiste
synchronize remote filemask=|>15N "C:\Users\ME\Desktop\folder\" "/home/website/public_html/folder/"
exit

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
28,507
Location:
Prague, Czechia

Like this:

:Loop
winscp.com /script=script.txt
timeout 10
goto :Loop
The script file is good.

---

Or like this and you do not need the script file:

:Loop
winscp.com /command ^
    "open sftp://user:password@webiste" ^
    "synchronize remote filemask=|>15N ""C:\Users\ME\Desktop\folder\"" ""/home/website/public_html/folder/""" ^ 
    "exit"
timeout 10
goto :Loop

Reply with quote

Advertisement

Toadmyster
Joined:
Posts:
5

When I double click on the .bat file, the windows command prompt opens and this is all that happens:

C:\Program Files (x86)\WinSCP>winscp.com /command
winscp>

Should I be executing it another way?

Thanks for your help by the way!

Reply with quote

Advertisement

You can post new topics in this forum