Jump to content

Extract folder name from full file path in hscript?


Justin K

Recommended Posts


I have a null, with some string parameter.  The first is a file directory parameter im using to get file paths and update them quickly. 
Is there a way  in hscript to take just the last folder name from this string, and generate a new parameter from that?

Example:
 directory--  D:/MEGASCANS_LIBRARY/Downloaded/surface/stone_floor_vixidai
 extracted string one--stone_floor_vixidai
extracted string two--vixidai



the first part of the string 
D:/MEGASCANS_LIBRARY/Downloaded/surface/---will never change.  its just that last path. 

Thank you!

 

Ive attached an image which should make it clear. 
Thanks!!!

 

Folder_Tweaking.PNG

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...