Posted: 2011-02-11 12:02
I use Winscp to transfer files. I'm a beginner but i have created a small script. This script it's ok but if the user would transfert a file with the same name the old file it's destroy.
I would like in this event the user confirms this choice. I see the documentation and the switch option confirm off at on. But my script go to the end and the user doesn't write y or n to confirm or unconfirm this choice...
I don't understand this problem.
In the first file it's general configuration and the script call:
winscp.com /script=upload_alert.txt /parameter %CMS_INTERNET_USER% %CMS_INTERNET_PWD% %CMS_INTERNET_SERVEUR% %CMS_INTERNET_HOSTKEY%
The script's file it upload_alert.txt.
option echo off
option batch abort
option confirm on
option transfer ascii
open sftp://%1%:%2%@%3%:22 -hostkey="%4%"
Thanks for your help.
Sorry if my english is bad it's not my fist language.[/img]
Posted: 2011-02-11 14:18
I find the solution. I delete the option batch abort and it's good.
Sorry for the inconvenience.
You can post new topics in this forum
And it's free!