Page 1 of 1

Nconvert not replacing (copying over) the image it created

Posted: Sun May 02, 2010 9:42 pm
by Maalox
Using: Rainmeter1.2 380 64 bit on Windows 7 x64, Nconvert x64

Hi, I am using nconvert to output images for desktop wallpaper in Rainmeter. The output size is 1920x1200, and the image turns out to be a little over 6MB. My problem seems to be with nconvert or the way I am using it:

If the desktop wallpaper image does not yet exist, nconvert creates the image as expected, but if the image already exists nconvert does not copy over it and replace it. I tried setting all the processes to run as Administrator, but this did not help. I first tried it in the Windows directory, and I have also tried it in my user directory without changing the behavior.

Code: Select all

LeftMouseDownAction=!Execute ["#dir#\util\fileExec.exe" "#dir#\util\nconvert.exe -v #MonitorResolution# -out png -o %%#dir#\Nostromo_wallpaper.png%%  %%[LoadPictures]%%" "%%#dir#\util\chWallpaper.exe%% %%#dir#\Nostromo_wallpaper.png%% center" -ew -swhide]
I had posted a similar question in the Rainmeter forum, but it looks like it might be more nconvert related: http://rainmeter.net/forum/viewtopic.php?f=5&t=3857

Anyone else have trouble getting nconvert to copy over the file it makes?

Thank you!

Re: Nconvert not replacing (copying over) the image it creat

Posted: Sun May 02, 2010 10:12 pm
by Maalox
I had tried different output types. Now I have moved nconvert back to the Windows directory and am using .bmp again. If I delete the Nostromo_wallpaper.bmp in the Windows directory, then I can create it and set it again, but I can't get nconvert to copy over that again. Also, User Account Control if off, if that matters.

Code: Select all

LeftMouseDownAction=!Execute ["#dir#\util\fileExec.exe" "nconvert.exe -v #MonitorResolution# -out bmp -o %%%windir%\Nostromo_wallpaper.bmp%%  %%[LoadPictures]%%" "%%#dir#\util\chWallpaper.exe%% %%%windir%\Nostromo_wallpaper.bmp%% center" -ew -swhide]

Re: Nconvert not replacing (copying over) the image it creat

Posted: Mon May 03, 2010 7:38 am
by xnview
Now there is -overwrite

Re: Nconvert not replacing (copying over) the image it creat

Posted: Mon May 03, 2010 11:34 am
by Maalox
That's it! Thank you, Pierre.