I have a unique situation (I think)
I have a ton of Windows XP Pro machines floating around the network
I have a ton of Windows 7 machines floating around the network
Obviously the user profiles are in different locations depending on the OS installed.
I have a need to copy a single Excel file from an app server to the following directory on the machine depending on the OS.
Windows 7 machines - C:\Users\username\AppData\Roaming\Microsoft\AddIns
Windows XP machines - C:\Documents and Settings\username\Application Data\Microsoft\AddIns
I've been fighting with how to determine the OS and copy the file to the correct location based on the OS version.
So basically, when the user logs in, the script runs, copies abc.xls file from \\appserver\sharename\ to either the Windows 7 user profile or the Windows XP profile
Can anyone help?