Topic "Error if no File found"

Author Message
LexMex

Guest


Hello everybody!

I hope that I can finde some help here. This is the situation:
Code:
.
.
.
.
#UPLOAD START
cd /Test/OUT/
put delete D:FTP_Files\OUT\*[b]12345[/b].txt
#UPLOAD END



Everything works good, if I have a relevant file in "D:FTP_Files\OUT\", but if there is no file, the process will be interupted.

Is there a solution to integrate a command like "if file "*12345.txt" doesn't exist then proceed with next line..."?

Thanks in advance for your help!
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Thanks for your post.
This issue has been added to tracker:
https://winscp.net/tracker/show_bug.cgi?id=746
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License