Delete everything in txt after fifth slash
Posted: 31 Oct 2018 10:18
Hi,
I wanted to know if someone could help me with this.
The batch file should delete everything in the line in the .txt file after the fifth slash, how could I do this? I don't have a clue where to start with this
Example of a .txt file:
Before:
Afterwards:
Thanks in advance! ^^
I wanted to know if someone could help me with this.
The batch file should delete everything in the line in the .txt file after the fifth slash, how could I do this? I don't have a clue where to start with this
Example of a .txt file:
Before:
Code: Select all
http://www.website.net/sr/PD2QPVGPRH2/?NameOfTheFile_05_720p.rar
http://www.website.net/sr/SWLYPVGPRNV/?NameOfTheFile_05_1080p.part1.rar
http://www.website.net/sr/23IXPVGPWXFO/?NameOfTheFile_05_1080p.part2.rar
http://www.website.net/sr/15ZPPVGPTN/?NameOfTheFile_06_720p.rar
http://www.website.net/sr/F6KXPVGPIYXO/?NameOfTheFile_06_1080p.part1.rar
http://www.website.net/sr/U79WPVGPLDM/?NameOfTheFile_06_1080p.part2.rar
http://www.website.net/sr/P8PPPVGPB4/?NameOfTheFile_07_720p.rar
Code: Select all
http://www.website.net/sr/PD2QPVGPRH2/
http://www.website.net/sr/SWLYPVGPRNV/
http://www.website.net/sr/23IXPVGPWXFO/
http://www.website.net/sr/15ZPPVGPTN/
http://www.website.net/sr/F6KXPVGPIYXO/
http://www.website.net/sr/U79WPVGPLDM/
http://www.website.net/sr/P8PPPVGPB4/