We use SCCM 2012 R2, server 2012 servers, and Windows 7 clients. Student machines are typically Win7-64.
I created a script to install Eclipse, basically, create a directory and copy the files (Eclipse has no installer and is 32 bit software). In my script, to make things nicer for the students, I want to put shortcuts on the desktop and in the Start Menu. The code is this:
REM Put icon on desktop
copy "Eclipse Mars (64).lnk" "C:\Users\Public\Desktop"
rename "C:\Users\Public\Desktop\Eclipse Mars (64).lnk" "C:\Users\Public\Desktop\Eclipse Mars.lnk"
However, when the link appears on the client desktop, the correct Target of "C:\Program Files (x86)\Eclipse\eclipse.exe" changes to "C:\Program Files\Eclipse\eclipse.exe" and hence doesn't work (same with Start In).
What is changing the shortcut contents to the wrong Program Files directory?
Lastly, while I'm mentioning Eclipse in this example, it happens with any 32 bit shortcuts scripted onto a 64 bit machine.