Without all the stack tracing, I cannot be completely sure, but you may need to specify a path character in the path.
Try the following:
String urlToBackUpFile = "smb://" +b +"/" + "c$/Program\\ Files/Office/Config/OfficeSyncData.ini";
And make sure that if "b" contains a space, you do the same.
EDITED: also try: can you provide a path to a location that does not contain spaces? to prove that spatial syntax is the source of your problems ...
source share