Robot framework takes : as another thing and i dont want it

im trying to set a name to my log file, it should be something like [date][time]_log.txt

so i’ve been doing some tests and i found that robot framework takes “:” as some special caracter

how can i format this name?

this “2021-05-14 11:40:30” is what the variable ${fecha} has inside

help!

Hi,

In Windows you cannot use characters:
\ / : * ? < > |
…in file names. So you should get things working if you make the ${fecha} return for example:
-11-14-30
…I would avoid spaces in paths (even though we’ve fought long and hard to get things working :wink:)

2 Likes