Page 1 of 1

Uso de asterisco (*) en AFT // using Wildcard (*)

Posted: 13 Jan 2009 4:55
by YOWAL
Uso de asterisco (*) en AFT // using Wildcard (*)

El problema es en el form de avanzado en la solapa AFT, yo quiero transmitir ficheros texto*.txt y renombrarlos luego de la transferencia.
Pero no me toma el nombre del archivo a transmitir si tiene * , entonces yo busco alguna variable autoedit para saber cual es el archivo exacto en el momento de la transferencia.
No se si fui claro, espero me puedan ayudar ya que necesito mucho esto.
Gracias.
**************************************************************************************************************************
The problem is the way forward in the flap AFT, I want to transmit text *. txt files and rename them after the transfer.
But I do not take the name of the file if you have * to pass, then I look for a variable autoedit to get the exact file at the time of transfer.
I do not know if I was clear, I hope I can help and I need this much.
Thank you.

Posted: 13 Jan 2009 7:04
by mauriziog
Is not the true topic but ....

use the advanced button of the transfer in the aft panel, there:
- use the variable "$$AFTFILE$$"
this is the original name of the single file you transfer with "*" wildcard

So for example you have "paperino_variable.txt" files.
So in the file trasfer you put "paperino*.txt" as name of files to transfer.
OK

Now you whant to rename each one with timeStamp:
in the rename field of the advanced window type:

"%%TIME_$$AFTFILE$$"

and you obtain:
101730_paperino_var1.txt
101735_paperino_var2.txt
etc.

Posted: 13 Jan 2009 8:27
by YOWAL
The variable works ok. But when I use FTP Commands does not work. You know how they can use it. For example I need to run in the flap AFT Commands "CHMOD 0755 $$AFTFILE$$."
Thank you

Posted: 14 Jan 2009 4:26
by hipikll
as i remember, you can not use $$AFTFILE$$ variable outside the 'AFT form' in jobs definition formular.
There was one way, but i can not remember now :(.

Posted: 15 Jan 2009 7:10
by YOWAL
Thank you for your help! :D

One more thing, this variable takes the file name without the extension, there are ways to take the name with your extension? :(

Posted: 21 Jan 2009 2:21
by mauriziog
One more thing, this variable takes the file name without the extension, there are ways to take the name with your extension?
In my envonments I take also the file extension !
I fact I have exactly the opposite problem: "how to remove it" :wink: