file parts

Discuss RoboTask here
Post Reply
photoevents
Posts: 44
Joined: Mon Jan 01, 2024 11:21 am
Contact:

file parts

Post by photoevents »

I'm trying to find a command that splits the filename into:

root path
directory
filename
filename without extension
extension
and puts that in variables.

Please advice on how to do this in robotask

Christian
photoevents
Posts: 44
Joined: Mon Jan 01, 2024 11:21 am
Contact:

Re: file parts

Post by photoevents »

Okay, found it in system variables,

NEAT :-)

{ExtractFileDrive(C:\Folder\File.ext)} Extracts file drive from full path
{ExtractFileExt(C:\Folder\File.ext)} Extracts file extension from full path
{ExtractFileName(C:\Folder\File.ext)} Extracts file name from full path
{ExtractFileNameNoExt(C:\Folder\File.ext)} Extracts file name without extension
{ExtractFilePath(C:\Folder\File.ext)} Extracts file path from full path
{ExtractFilePathNoDrive(C:\Folder\File.ext)} Extracts file path from root folder

Have a great evening,
Christian
Post Reply