From aac35f0ec0fe25555a14950986ea046f32a764c4 Mon Sep 17 00:00:00 2001 From: Remnence Date: Sun, 5 Feb 2017 18:39:23 -0600 Subject: [PATCH] Update drop cia or folder here.bat Basic error checking to exclude non-cia files. --- servefiles/drop cia or folder here.bat | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/servefiles/drop cia or folder here.bat b/servefiles/drop cia or folder here.bat index edd8d6e..e727bf2 100644 --- a/servefiles/drop cia or folder here.bat +++ b/servefiles/drop cia or folder here.bat @@ -1,6 +1,11 @@ @ECHO OFF set /p DSIP="Enter the IP of your 3DS: " -for %%a in (%*) do ( -python %~dp0servefiles.py %DSIP% "%%~a" +for %%a in (%*) do ( + if "%%~xa"==".cia" ( + python %~dp0servefiles.py %DSIP% "%%~a" + ) + if "%%~xa"=="" ( + python %~dp0servefiles.py %DSIP% "%%~a" + ) ) pause