I'm trying to create a batch file to run an automated process to export files as .pngs for the sprite editing tool Asesprite, but running into problems.
I have the following command in CP:
Code: Select all
G:\Desktop\Char_A>"G:\Desktop\Ase\Aseprite.exe" -b sp.aseprite --save-as output.png
This allows me to create .png files from the sp.aseprite file right into the Char_A folder. This works fine in CP. But for doing the same process using a batch file is proving to be difficult.
I tried the following initially:
Code: Select all
@ECHO OFF
ECHO.
START "G:\Desktop\Ase\Aseprite.exe" -b sp.aseprite --save-as output.png
ECHO.
PAUSE
CLS
EXIT
I also tried swapping START with FOR and inserting a DO before the -b, it acts like it executed, but does not create the output file.
Any guidance on how to make this work for a batch file would be greatly appreciated.
Please also note that the end result is to get this to work in a manner such that all .aseprite files in a folder are read and outputted with the same name, but as .pngs. I'm sure the FOR, DO and * functions will be used, but I'd have to get the basics down first before the actual problem can be addressed.
Thanks in advance.