Search found 2 matches
- 30 Jul 2009 09:54
- Forum: DOS Batch Forum
- Topic: Substrings with DOS
- Replies: 2
- Views: 6174
- 30 Jul 2009 09:38
- Forum: DOS Batch Forum
- Topic: Substrings with DOS
- Replies: 2
- Views: 6174
Substrings with DOS
I've a string containing the full path to a text file and i'd like to extract only the name of the text file. For example d:\myfolder\myfile.txt I can get the path of the file using the code below, but i cant get the name of the file SET Var=d:\myfolder\myfile.txt For %%i in (%Var%) Do Set C...