i would like to craete a batch file that copys my icon to the desktop, which is proving dificult can anyone help?
the code i 开发者_JS百科have asumed to use is a simply xcopy but it dose not result as wished for
xcopy /s/y C:\ICT\AUTOCAD_2010\NEWINK C:\"Documents and Settings"\"%userprofile%"\desktop
thanks-
This should work
xcopy /s/y C:\ICT\AUTOCAD_2010\NEWINK "%userprofile%\desktop\"
In %userprofile% is the complete path, like "c:\users\Adam"
And the path "Documents and Settings" is only a synonym for "c:\Users"
精彩评论