Skip to content

Instantly share code, notes, and snippets.

@DataTurks
Created September 5, 2018 11:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DataTurks/79f796cf37bb06476ea210dd927e79f0 to your computer and use it in GitHub Desktop.
Save DataTurks/79f796cf37bb06476ea210dd927e79f0 to your computer and use it in GitHub Desktop.
@echo off
set _DIR_PATH=%1
set _DATATURKS_OUT=dataturks_urls.txt
echo.>%_DATATURKS_OUT%
for /f "tokens=1-2 delims=:" %%a in ('ipconfig^|find "IPv4"') do set ip=%%b
set ip=%ip:~1%
for /r %%i in (%_DIR_PATH%\*.*) do echo http://%ip%:8000/%%~nxi >>%_DATATURKS_OUT%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment