$path = "\path1\path2\path3\file.ext"; # change " to ' and # you'll be fine $path = '\path1\path2\path3\file.ext';