Page 1 of 1
Filename in variable
Posted: Wed May 10, 2006 2:18 am
by Igores
Hi Guys. I'm beginner with Robotask. I need to change file extention (in variable, which is holding complete filename) and assign filename with new extention to another variable. Can anybody help me how to realize it?
Filename in variable
Posted: Wed May 10, 2006 7:28 am
by Oleg
Suppose, your variable named MyVar, contains the file name "c:\myFolder\myfile.txt". You want to change the extension to "dat"
You can do the following:
set the vatiable MyVar with value:
{ExtractFilePath({MyWar})}\{ExtractFileNameNoExt({MyVar})}.d at
Don't forget to turn on the "Expand variable value" checkbox