made adjustments to handle backslash and ampersand and spaces in paths
Made changes to handle bacslash, ampersand, and spaces in paths