Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

abdel

commande qui retourn une valeur et condoition

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
martin

Re: searching a commande same as dir >

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
martin

Re: searching a commande same as dir >

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
abdel-droussi

searching a commande same as dir >

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
abdel

searching a commande same as dir >

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