|
Answer» Hi,
I would like to use a BACH file to convert .bmp file to .jpg file. I am using NCONVERT v4.57. Here is my code: Code: [Select]set today=%DATE:/=% nconvert -D -out jpeg -o %_%today%.jpg *.bmpWhen I put these 2 lines in a .BAT or .cmd file and just launch the file, it dosn't work. When I execute directly these 2 lines in a dos console, it works. It will return: CONVERSION of today.bmp into today_21042006.jpg OK
FYI: -o filename : Output filename Use % to specify SOURCE filename
Thank you.Friend of MINE helped me out:
Code: [Select]set today=%DATE:/=% nconvert -D -out jpeg -o %%_%today%.jpg *.bmp
|