Download
rename as
rename.pl. On the command line, type:
perl rename.pl -n "s{(\d+)(?= - \d+\.jpg$)}{ sprintf q(%03d), $1 }e" *
+.jpg
Remove
-n switch to actually do the renaming.
Note: Command provided is quoted for
cmd.exe.
Update: Added more details.