Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

Toadmyster

I think I have it working now. Thanks for your help!
Toadmyster

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!
martin

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
Toadmyster

I've updated my post showing contents of both files. Hopefully you can help me figure this out.
Toadmyster

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
Toadmyster

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.