Need to find a substitute for the path of Documents and Settings

I am using the system command of copy and it reads "C:\\Documents and Settings" as "C:\Documents". I have tried underlines and no spaces, but it is still not a valid path.

system ("dir %systemroot%\\..\\Documents and Settings\\%username%\\Desktop")
closed account (DSLq5Di1)
Quote the path within your string,

"dir \"%systemroot%\\..\\Documents and Settings\\%username%\\Desktop\""
Thanks!
Topic archived. No new replies allowed.