We use SCCM 2012 R2, 2012 server servers, and Windows 7 clients. Student machines are typically Win7-64.
I created a script to install Eclipse, basically create a directory and copy files (Eclipse does not have an installer and 32-bit software). In my script, to make things better for students, I want to place shortcuts on the desktop and the Start menu. The code looks like 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’s desktop, the correct Target from “C: \ Program Files (x86) \ Eclipse \ eclipse.exe” changes to “C: \ Program Files \ Eclipse \ eclipse.exe" and therefore does not work ( same with Start In).
What will change the contents of the shortcut to the wrong directory of program files?
Finally, although I mention Eclipse in this example, this happens with any 32-bit shortcuts written on a 64-bit machine.
source
share