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

osaacox

Re: Files not syncing to folder in WinSCP when attempting to automate

Sorry to waste your time, I actually just figured out what I did wrong and got it working. You can disregard my question.
osaacox

Re: Files not syncing to folder in WinSCP when attempting to automate

My username is actutally "osaacox". I just realized that I was not logged in.
Hello,
I setup a batch file and a txt file with the script in an attempt to automate the process of syncing files. When I run the batch file, nothing happens. I think that there may be a problem with the authentication but not sure. I am using WinSCP version 5.13.3 on Windows server 2012.
Here is my script from the batch file -
cd C:\Jenzabar Import_Export
winscp.com /script.txt
Here is the script from "script.txt" with out the actual host key
open sftp://ftpmcph:exampl@example/ -hostkey="ssh-rsa 2048 example"

option batch abort
option confirm off
# Execute the script using a command like:
put C:\Jenzabar Import_Export\Export\"" /StarRez/Export/Test

exit

That is my first sript.
I have another script that doesn't seem to work either -
open sftp://ftpmcph:example/ -hostkey="example"

option batch abort
option batch off

# Execute the script using a command like:
syncronize remote C:\Jenzabar Import_Export\Export\"" /StarRez/Import/Test
exit

Thank you[/quote]
osaacox1

Files not syncing to folder in WinSCP when attempting to automate

Hello,
I setup a batch file and a txt file with the script in an attempt to automate the process of syncing files. When I run the batch file, nothing happens. I think that there may be a problem with the authentication but not sure. I am using WinSCP version 5.13.3 on Windows server 2012.
Here is my script from the batch file -
cd C:\Jenzabar Import_Export
winscp.com /script.txt
Here is the script from "script.txt" with out the actual host key
open sftp://ftpmcph:exampl@example/ -hostkey="ssh-rsa 2048 example"

option batch abort
option confirm off
# Execute the script using a command like:
put C:\Jenzabar Import_Export\Export\"" /StarRez/Export/Test

exit

That is my first sript.
I have another script that doesn't seem to work either -
open sftp://ftpmcph:example/ -hostkey="example"

option batch abort
option batch off

# Execute the script using a command like:
syncronize remote C:\Jenzabar Import_Export\Export\"" /StarRez/Import/Test
exit

Thank you