New
#1
Batch Script - Extract EVERYTHING after the LAST Back Slash in a File
I am sure that I am overthinking this as far as putting a Script together.
I have a Script that extracts EVERYTHING from a Folder [ ALL Folders & Sub-Folder Names, ALL Filenames within them including the Suffix and Size ] and creates a.log
file. The.log
file includes the FULLPath
name. So far so good.
I have a.log
file withEntries: 87,434
.
Obviously, with such a big file, there are different amounts of\
[ Back Slashes ] within thePath
name. How can I extract just the data AFTER the LAST\
please ?
Here is a small example . . .
Code:G:\300GB_From_Internal_HDD\Kingston - Old Stick\KINGSTON\Tiny Hard Disk Backup\Favorites\Current Project\z1.url [Size: 260 Bytes] G:\300GB_From_Internal_HDD\Paul Black - FULL Backup 29-Oct-2018\Documents\Paul Black - Personal\eBay\Bought.docx [Size: 210777 Bytes] G:\300GB_From_Internal_HDD\Paul Black - FULL Backup 29-Oct-2018\Documents\Paul Black - Personal\eBay\Tables.docx [Size: 180517 Bytes] G:\300GB_From_Internal_HDD\System Image-Backups\System Image-Backup Created 23-May-2017\Favorites\Music - YouTube\Steve Roach & Others\Dream Circle Cobalt Sun & Steve Roach - YouTube.url [Size: 355 Bytes] G:\300GB_From_Internal_HDD\[00] Paul Black - FULL Backup 31-May-2019\Documents\Paul Black - Movies\Super Mario Bros\vlcsnap-2016-12-16-12h58m45s697.png [Size: 50385 Bytes] G:\300GB_From_Internal_HDD\[00] Paul Black - FULL Backup 31-May-2019\Documents\Paul Black - Personal\Miscellaneous\Master - House Specifications.xlsm [Size: 17555 Bytes] G:\300GB_From_Internal_HDD\[00] Paul Black - FULL Backup 31-May-2019\Documents\Paul Black - Personal\Miscellaneous\Master - Shopping List.xlsm [Size: 14567 Bytes] G:\300GB_From_Internal_HDD\[00] Paul Black - FULL Backup 31-May-2019\Documents\Paul Black - Personal\Miscellaneous\Videos.txt [Size: 458 Bytes] G:\300GB_From_Internal_HDD\[00] Paul Black - FULL Backup 31-May-2019\Favorites\General\List.log file.url [Size: 713 Bytes] G:\300GB_From_Internal_HDD\Kingston - 32 GB - Red USB\Photos\Sally\Sally 2.jpg [Size: 76108 Bytes]
I have tried to do this inOpenOffice
, but toNO
avail.
Thanks in advance.