Filename in variable
Filename in variable
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
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
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