Grazie a tutti anticipatamente

Codice: Seleziona tutto
@echo off
rem MAME SCRIPT EXPORT
rem AUTHOR: Arcade Database by motoschifo - http://adb.arcadeitalia.net
rem TITLE: Lista MAME da ricerca - ADB
rem DATE: 11/11/2017
rem MAMEROOT is the root folder of Mame
set MAMEROOT=c:\MAME
goto process_games
:process_game
SETLOCAL
rem ROMSET is the zip rom file name without extension (ex. mslug, pacman, atetris)
set ROMSET=%~1
rem ROMTYPE is used for game type: P=parent, C=clone, N=none
set ROMTYPE=%~2
rem ROMPARENT is the parent romset (only for clones)
set ROMPARENT=%~3
rem SCREEN is the orientation of screen: H=horizontal, V=vertical, N=none/screenless
set SCREEN=%~4
rem TITLE is the game title
set TITLE=%~5
echo.===============================================================================
echo.PROCESS GAME %ROMSET% - %TITLE%
echo.PARENT: %ROMPARENT% - TYPE %ROMTYPE% - SCREEN %SCREEN%
echo.-------------------------------------------------------------------------------
echo.TODO: Complete here to do some action...
rem Example:
rem if exist "%MAMEROOT%\titles\%ROMSET%.png" copy "%MAMEROOT%\titles\%ROMSET%.png" "%MAMEROOT%\titles.clones\%ROMSET%.png"
rem if "%ROMTYPE%"=="P" ( echo This is a parent rom )
echo.
ENDLOCAL \& SET _result=
goto :eof
:process_games
call :process_game "bowl3d" "P" "" "V" "3-D Bowling"
call :process_game "atarifb1" "C" "atarifb" "H" "Atari Football (revision 1)"
call :process_game "atarifb" "P" "" "H" "Atari Football (revision 2)"
echo.JOB COMPLETED
Codice: Seleziona tutto
@echo off
set SOURCE=C:\Users\Michele\Desktop\tutti i video Mame
set DEST=c:\MAME\video
set ROMS=c:\MAME\roms
rem for /f %f in (`dir /b c:\`) do echo %f
for /f "usebackq delims=|" %%f in (`dir /b "%ROMS%"`) do call :copy_video %%~nf
goto :eof
:copy_video
if not exist "%SOURCE%\%1.mp4" exit
echo.VIDEO %1...
copy "%SOURCE%\%1.mp4" "%DEST%\%1.mp4"
goto :eof
echo.FINITO
Sono cose "facili" da realizzare, ma troppo specifiche e quindi dovresti cambiare il programma continuamente.Tox Nox Fox ha scritto: ↑11/11/2017, 13:03 Un programma che mi legge i file senza estensione da una cartella e sposta gli stessi nomi senza estensione da una cartella ad un'altra, o quelli che non trova, sarebbe fantastico
Io di solito butto dentro tutte le snap e video per non stare lì a scremarle