Good afternoon everyone,
I am having a bit of a problem. I am creating a simple script that will copy files from one of our servers to everyone’s computer. The files need to go to a specific location within each user’s profile. I tried using the default %userprofile% from within the script it failed. I searched this forum and found what I thought would work, but that too is failing. Can someone assist me with this script.
Const OverwriteExisting = True
Set WshS = WScript.CreateObject(“WScript.Shell”)
Set FSO = CreateObject(“Scripting.FileSystemObject”)
usrProfile = WshS.ExpandEnvironmentStrings(“%UserProfile%”)