I like to run the following shell comandline using RunProgram:
Code: Select all
for i in *.pnm ; do convert "$i" "${i%.*}.jpg" ; doneCode: Select all
Protected Foldername.s = "/tmp/images/"
Protected Convert.s = "for i in *.pnm ; do convert "+Chr(34)+"$i"+Chr(34)+" "+Chr(34)+"${i%.*}.jpg"+Chr(34)+" ; done"
RunProgram(Convert.s, "", Foldername.s, #PB_Program_Wait)I don't like to save a .sh file and I don't like to develop this in PureBasic (looping files) as Linux is doing a fine job here.
Any hint?
Kind Regards,
Kukulkan

