Files not syncing to folder in WinSCP when attempting to automate

Advertisement

osaacox1
Guest

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

Reply with quote

Advertisement

osaacox
Joined:
Posts:
2

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]

Reply with quote

osaacox
Joined:
Posts:
2

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.

Reply with quote

Advertisement

You can post new topics in this forum