Help writing batch file (long folder names problem)

Bruck

Senior member
Aug 6, 2003
381
0
0
Writing a batch file to copy *.lnk to c:\documents and settings\All Users\Desktop but syntax is not correct
I figured out that "copy *.lnk c:\documents~1" works but i am having trouble continuing the syntax of the correct path, any help would be greatly appreciated.

Thanks
 

mikecel79

Platinum Member
Jan 15, 2002
2,858
1
81
Put the path in quotes and "to" from the command line.

So it would be

copy *.lnk to "c:\documents and settings\All Users\Desktop".