Project 1999

Project 1999 (/forums/index.php)
-   Technical Discussion (/forums/forumdisplay.php?f=40)
-   -   hiccups while connected (/forums/showthread.php?t=69426)

lansuven 05-23-2013 10:41 PM

batch file
 
So I noticed the link to the .bat file wasn't working and had to find a workaround. If anyone's interested, open notepad, copy this, and save it as a .bat file (have to change save format from .txt to 'all files'). This lets you take the list of files (from page 1 on this thread), copy them to a .txt file, and then it reads that .txt file to copy just those files to a destination and from a source folder that you also set (the directories should be written after the '=' in lines 2-4). Should be pretty easy.

@echo off
set Source=
set Target=
set FileList=
echo.

if not exist "%Source%" echo Source folder "%Source%" not found & goto Exit
if not exist "%FileList%" echo File list "%FileList%" not found & goto Exit
if not exist "%Target%" md "%Target%"

for /F "delims=" %%a in ('type "%FileList%"') do move "%Source%\%%a" "%Target%"

:Exit
echo.
echo press the Space Bar to close this window.
pause > nul


All times are GMT -4. The time now is 12:28 PM.

Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.