Hi
if i use input and choose a file like C:\Temp\Test.txt
Let>INPUT_BROWSE=1
Input>FILE,Choose file,
Then FILE contains both the filepath and the file name
C:\Temp\Test.txt
how can i split the filepath and the filename ?
So that i get FILEPATH that contains C:\Temp\
and FILENAME that contains Test.txt
how to split filepath and filename ?
Moderators: Dorian (MJT support), JRL
how to split filepath and filename ?
//Kennet
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Let>file=C:\Temp\Test.txt
Separate>file,\,file_parts
Let>filename=file_parts_%file_parts_count%
StringReplace>file,filename,,path
MessageModal>%path% - %filename%
Separate>file,\,file_parts
Let>filename=file_parts_%file_parts_count%
StringReplace>file,filename,,path
MessageModal>%path% - %filename%
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?