I want to copy a file to all users desktop on Windows 7 by using a batch file with the command:
COPY C:\FOLDER\FILE.TXT %AllUsersProfile%\Desktop
But the message "Permission Denied" is shown. How can i get the batch file to request evaluated privileges so i can click "Yes" instead of just denying?
Best Answer
Assuming the user who is going to run the script has rights to put files in the "Public Desktop" folder:
(source: richard-slater.co.uk)