Previously working script not working anymore

Advertisement

jhs1
Donor
Joined:
Posts:
7

Previously working script not working anymore

Here is my script which I run from a cmd prompt in Windows, it first prompts for the web site password then uploads 1 file:
@echo off
setlocal enableextensions enabledelayedexpansion
 
set /P password=Enter website pwd or Enter to quit: 
IF %password% == "" exit
 
cls
 
set log_filename=passwd_upload.log
del %log_filename%
 
echo Starting WinSCP
 
"C:\Program Files (x86)\WinSCP\WinSCP.com" /log=%log_filename% /ini=nul /command "open ftp://xxx:"%password%"@ftp.xxx.com:21/ -hostkey=""ssh-ed25519 255 yyyyyyyyy"" -rawsettings FSProtocol=2" ^
 "put ""C:\file"" ""/home/xxx/file""" ^
 "exit"
 
echo WinSCP finished
 
set /P exit_bat=Hit any key to quit:
Description: log file from doing the same via the WinSCP UI (which works)

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
42,912
Location:
Prague, Czechia

Re: Previously working script not working anymore

We need to know more about "not working anymore". What does it do? Can you please post the script passwd_upload.log log file too?

Reply with quote

Advertisement

You can post new topics in this forum