4NXCI icon indicating copy to clipboard operation
4NXCI copied to clipboard

Batch Processing

Open ozayturay opened this issue 6 years ago • 3 comments

I made a batch file for converting all XCI files in a folder. Maybe you can put it in the next release for ease of use. ;)

4nxci_convertall.bat

@Echo Off

%~d0
Cd %~p0

Echo This Script Will Convert All XCI Files To NSP
Echo Working Directory: %~dp0
Echo.
Echo.

For %%F In (*.xci) Do (
  Echo Converting "%%F"
  Echo.
  4nxci.exe "%%F"
  If Exist 4nxci_extracted_xci RmDir /s /q 4nxci_extracted_xci
  Echo.
  Echo.
)

Pause
```	

ozayturay avatar Sep 27 '18 11:09 ozayturay

Maybe add support for multiple files to the program instead of a batch file. You could call it like this: ./4nxci *.xci

ghost avatar Oct 14 '18 08:10 ghost

@ozayturay Is there a way to make a bat that will convert and retain the original file name?

BParks21 avatar Jan 26 '22 07:01 BParks21

Slightly modified version of script that retains the title name and lets you specify the working directory:

@Echo Off

Echo This Script Will Convert All XCI Files To NSP
SET /p directory="Enter Working Directory: "

Echo.
Echo.

For %%F In (%directory%\*.xci) Do (
  Echo Converting "%%F"
  Echo.
  4nxci.exe -r -o "%directory%\NSP" "%%F"
  If Exist 4nxci_extracted_xci RmDir /s /q 4nxci_extracted_xci
  Echo.
  Echo.
)

Echo Done.
Pause

melterx12 avatar Feb 14 '22 00:02 melterx12