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

Post Reply
User avatar
YOWAL
Nouveau
Nouveau
Posts: 18
Joined: 07 Jan 2009 12:00
Location: Argentina, Buenos Aires

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

Post by YOWAL » 13 Jan 2009 4:55

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.

User avatar
mauriziog
Nouveau
Nouveau
Posts: 807
Joined: 08 Jun 2007 12:00
Location: Varese - Italy
Contact:

Post by mauriziog » 13 Jan 2009 7:04

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.

User avatar
YOWAL
Nouveau
Nouveau
Posts: 18
Joined: 07 Jan 2009 12:00
Location: Argentina, Buenos Aires

Post by YOWAL » 13 Jan 2009 8:27

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

hipikll

Post by hipikll » 14 Jan 2009 4:26

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 :(.

User avatar
YOWAL
Nouveau
Nouveau
Posts: 18
Joined: 07 Jan 2009 12:00
Location: Argentina, Buenos Aires

Post by YOWAL » 15 Jan 2009 7:10

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? :(

User avatar
mauriziog
Nouveau
Nouveau
Posts: 807
Joined: 08 Jun 2007 12:00
Location: Varese - Italy
Contact:

Post by mauriziog » 21 Jan 2009 2:21

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:

Post Reply