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

i want a script to extraxt the file name to be like that ""

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

See More: batch to extract name from url

Report •

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

Report •
Related Solutions

Ask Question