How to find the name of a file in a folder

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
Trevor Hughes
Junior Coder
Posts: 24
Joined: Sun Dec 15, 2013 9:27 pm

How to find the name of a file in a folder

Post by Trevor Hughes » Wed Jan 23, 2019 6:43 pm

Hello

I am currently using the following to get a list of files in a folder to use in my script:

GetFileList>c:\Temp\*.*,files
Separate>files,;,file_names
ArraySort>file_names

This works well in giving me the full path to the file. However I want to use a variable to store just the filename (without the path),

Could anyone help with this.

Kind regards
Trevor

User avatar
Grovkillen
Automation Wizard
Posts: 313
Joined: Fri Aug 10, 2012 2:38 pm
Location: Hudiksvall, Sweden
Contact:

Re: How to find the name of a file in a folder

Post by Grovkillen » Wed Jan 23, 2019 7:43 pm

Let>ME=%Script%

Running: MS14.5.4

Post Reply