The program that's giving the "C:\" as argument can't be changed, so I just have to work with it.

What I need is some kind of way of manipulate strings through the batch file so I can take the quotes off and just do %path_without_quotes/*.jpg like you said