Topic "searching a commande same as dir >"

Author Message
abdel

Guest


hi,
im using winscp432.com and every thing is ok to connect to an ftps,but i need a commande that will write the content of ftps file in my local computer without deleting it same as dir > test.txt in DOS Command,is it possible or not?i can display the content with ls but as i told to save a copy in a text file without changing it.
thank you
Advertisements
abdel-droussi

Guest


im the same user and i forgot to ask if winscp.com accept the command like if then and if so is there a command which can send message?what i need exactly to search the content of directory by :winscp>cd /inbox
winscp>ls test*
after if available send a message if not noneed,is it possible to do that in winscp?if so which commands i have to type?
thanks in advance
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
abdel wrote:
hi,
im using winscp432.com and every thing is ok to connect to an ftps,but i need a commande that will write the content of ftps file in my local computer without deleting it same as dir > test.txt in DOS Command,is it possible or not?i can display the content with ls but as i told to save a copy in a text file without changing it.
thank you

Do you mean that you want to append the source remote file to the end of target local file?
Use get -append for that:
https://winscp.net/eng/docs/scriptcommand_get
_________________
Martin Prikryl
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
abdel-droussi wrote:
im the same user and i forgot to ask if winscp.com accept the command like if then and if so is there a command which can send message?what i need exactly to search the content of directory by :winscp>cd /inbox
winscp>ls test*
after if available send a message if not noneed,is it possible to do that in winscp?if so which commands i have to type?
thanks in advance

https://winscp.net/eng/docs/script_checking_file_existence
https://winscp.net/eng/docs/guide_automation#results
abdel

Guest


bonjour ,
peut etre que j'ai mal exprim en englais,ce que je veux exactement apres la connexion a mon ftps:
option batch on
option confirm off
open ftps://****:*****@****.*****.com:*** -implicit
cd /inbox
ls LEN*(celui va me retourner une valeur si'il existe de fichier sinon 0)
dans le cas ou le fichier existe je veux envoyer un message par email a mon adresse exemple ***@hotmail.com,est ce que ca possible par winscp432(winscp.com)
merci
abdel
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