mirror of
https://github.com/a2-4am/4cade.git
synced 2024-12-21 17:31:08 +00:00
16 lines
263 B
Batchfile
16 lines
263 B
Batchfile
@echo off
|
|
setlocal enabledelayedexpansion
|
|
1>nul copy /y nul %2
|
|
for /f "tokens=*" %%a in (%1) do (
|
|
set f=0
|
|
call :x %%a
|
|
if !f!==2 goto:eof
|
|
if !f!==0 1>nul copy /b /y %2+%3\%%a %2
|
|
)
|
|
goto:eof
|
|
|
|
:x
|
|
set a=%1
|
|
if not x%a:#=%==x%a% set/a f=1
|
|
if not x%a:[=%==x%a% set/a f=2
|