Solved batch to extract name from url

April 23, 2012 at 11:06:17
Specs: Windows 7
i want to make a batch to extract filename from url

EX I want to make a btach script that can give me the file name of a url in a seperate text

http://205.196.121.128/mo7kkvb6d6tg...

i want a script to extraxt the file name to be like that "Hnck.2008.BRRip_mediafiremoviez.com.mkv.003"


hope i am clear and waiting for your guide people :)


See More: batch to extract name from url

Report •


#1
April 23, 2012 at 13:31:35
✔ Best Answer
@echo off
for /f "tokens=5 delims=/" %%i in ('echo %1') do echo %%i >file.txt

Save as script.bat and run it as script.bat your_url
Tony


Report •
Related Solutions


Ask Question