This "answer" has absolutely nothing to do with the original question that was asked in this seven year old post. Why did you dig it up and answer a question that was never asked?

Besides that, the correct "answer" is not to rename files and directories, it is to enclose the path and/or file name in quotes when there are embedded spaces:

Qt Code:
  1. "D:\Lab\QtProjects\MyNotepad 1.0"
To copy to clipboard, switch view to plain text mode