searching a commande same as dir >

Advertisement

abdel
Guest

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

Reply with quote

Advertisement

abdel-droussi
Guest

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

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

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

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

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

Reply with quote

abdel
Guest

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

Reply with quote

Advertisement

You can post new topics in this forum