How is it possible to replace \ with \\ in a string containing a full filename?

is there any elegant way to do that?

great thanks