Post Reply 

Problems with a bat script :(

Mar 26, 2018, 20:29
Post: #1
Problems with a bat script :(
Code:
@ECHO OFF
TITLE Compress GIMP
CLS

REM This is to get the first argument after the batch file
SET FILE_IN=%1
CALL :DEQUOTE FILE_IN

REM This sets the path used in the gimp script
SET PATH=%FILE_IN%\*.png

REM This prints the path
ECHO Will run GIMP script in path '%PATH%'. Press Enter to continue or Ctrl+C to exit.

REM This waits for enter input
PAUSE

REM Change argument 0 to the GIMP exe
REM For me it's "D:\Programs\GIMP 2\bin\gimp-2.8.exe"
REM If you want to run it inside the current cmd window,
REM  use gimp-console-2.8.exe, otherwise (aka new window pops up), use gimp-2.8.exe
"D:\Programs\GIMP 2\bin\gimp-2.8.exe" -i -b "(batch-auto-fix \"%PATH%\")"

REM Tell user it's done!
ECHO DONE.
GOTO:EOF

:DEQUOTE
FOR /F "delims=" %%A IN ('echo %%%1%%') DO SET %1=%%~A
GOTO:EOF
This is a script I asked my friend to make that changes the image mode to indexed and saves it as a compressed .png. He never could get it to work and he gave up so I figured this is the best place to ask for this kind of help. I hope his comments are enough, if not I could elaborate/explain if issues arise.
Find all posts by this user
Quote this message in a reply
Mar 26, 2018, 21:14
Post: #2
RE: Problems with a bat script :(
This forum has been DEAD for a long time and is abandoned to spammers.

We've all gone to https://www.gimp-forum.net
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Script-fu ordered file list vnicent 1 198 Mar 19, 2018 17:33
Last Post: paynekj
  script-fu argument/parameter formats dhugg 2 317 Mar 13, 2018 00:50
Last Post: dhugg
  Request for script chlebna 1 489 Sep 13, 2017 09:35
Last Post: ythgilb
  Request for script - Guillotine + Watermark sunslick 1 542 Sep 4, 2017 08:51
Last Post: ythgilb
  Script-fu: How to create new, addressable layer using gimp-floating-sel-to-layer Bertholom√§us 1 584 Aug 31, 2017 14:32
Last Post: Bertholomäus

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS