|
|
#1 |
|
Forum King
Join Date: Jan 2002
Location: AT-DE
Posts: 3,366
|
WordFind2X question
InputString: C:\Path\to\myFile\myFile.exe
${WordFind2X} "$Input" "\" "." "-1" $File this gives me the filename without the extension, but it's not working when the filename contains dots. i tried a couple of other variants by chance, as i think the documentation on the wiki isn't the best - but i couldn't get it to work as desired. maybe some of the english tongues can improve the docs for all of instructor's word functions, i think they're not that clear. |
|
|
|
|
|
#2 |
|
Senior Member
Join Date: Mar 2006
Location: Dallas
Posts: 462
|
I don't think you will be able to filter the path with a single call to the word functions. I suggest doing it in three steps, first remove the drive and colon, second remove the part before all backslashes ('\\'), finally remove the last '.' and the extension:
code: |
|
|
|
|
|
#3 |
|
Major Dude
Join Date: Jul 2004
Posts: 671
|
code: |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|