Page 1 of 1

file parts

Posted: Mon Jun 17, 2024 3:44 pm
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

Re: file parts

Posted: Mon Jun 17, 2024 4:23 pm
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