Looks like for Vista/7 it is supposed to be “%PROGRAMDATA%”, not
“%ALLUSERSPROFILE%”.

----------------------------------------------
Bill Bell
Asst. Technology Coordinator
Monticello CUSD #25
Monticello, IL  61856
http://www.cafepress.com/tech-geeks
----------------------------------------------




On 8/20/10 8:53 AM, "McKay, Curtis" <[email protected]> wrote:

> I see that your working with VBS commands, sometimes a different animal, but
> I’ve used the following batch file command successfully on Windows 7 labs:
>  
> copy "%allusersprofile%\start menu\programs\STAR READING\STAR Reading -
> Student.lnk"   "%allusersprofile%\desktop\STAR Reading - Student.lnk" /y
>  
> It goes after the profile folder and then appends desktop onto it instead of
> going straight to the desktop, maybe that makes a difference.
>  
> One thing to note, we do have UAC turned off on all our images.  To many
> simple things didn’t work with that turned on… like mapping drive letters in a
> login script!
>  
>  
> 
> Curtis McKay
> Network Administrator
> Belleville Township High School District 201
> [email protected]
>  
> 
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Steele, Thomas C
> Sent: Friday, August 20, 2010 8:39 AM
> To: Tech-Geeks Mailing List
> Subject: [tech-geeks] Add items to all users Desktop in Windows 7
>  
> Has anyone written a script that will add shortcuts to all users desktops in
> Windows Vista and Windows 7?   Microsoft changed the whole directory structure
> and the script I had to do this in XP no longer works – specifically the
> SpecialFolders("AllUsersDesktop") command.
>  
> I know we can accomplish the same thing by copying the shortcut to the
> C:\Users\Public\Public Desktop folder, but that is a hidden folder and it
> seems the CopyFile command doesn’t see hidden folders.
>  
> Any suggestions?
>  
> Thanks!
>  
> Thomas C. Steele
> Technology Director
> Manteno CUSD #5
> 250 N Poplar
> Manteno, IL 60950
> ph: (815)928-7006  fx: (815)468-6439
>  
> 
> 
> | Subscription info at http://www.tech-geeks.org |

| Subscription info at http://www.tech-geeks.org |

Reply via email to