Are you looking a script that can copy a file into all user desktop which work on either XP or Win7. Below is the script that modify from Michael Hex .
PUBLIC folder is the location for All Users in Windows 7.
Example: Copy a URL shortcut into Win XP & Win 7 desktop.
1: @echo off
2: IF "%PUBLIC%"=="" GOTO NO_PUBLIC
3: GOTO PUBLIC_FOUND
4:
5: :NO_PUBLIC
6: Rem Win XP
7: copy "Bing.url" "%ALLUSERSPROFILE%\Desktop"
8:
9: :PUBLIC_FOUND
10: Rem Win Vista or Win 7
11: copy "Bing.url" %PUBLIC%\Desktop
Don’t forget to turn off User Account Control ( UAC ) in Vista & Win7
No comments:
Post a Comment