Filename in variable

Post comments and suggestions for RoboTask here
Post Reply
Igores
Posts: 1
Joined: Wed May 10, 2006 2:03 am
Location: Slovakia

Filename in variable

Post 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?
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Filename in variable

Post 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
Post Reply