windowsfan
IS-IT--Management
I need help to modify the below script to check if currentMonth.jpg file exist on local pc users profile. It should delete all wallpaper besides current month.
Currently I am using below script from Markdmac
Set WshShell=CreateObject("WScript.Shell")
USERPROFILE =WshShell.ExpandEnvironmentStrings("%USERPROFILE%")
Set objFSO = CreateObject("Scripting.FileSystemObject")
If Not objFSO.FileExists(USERPROFILE &"\logo.jpg") Then
objFSO.CopyFile "\\server\share\logo.jpg", USERPROFILE &"\logo.jpg"
End If
Currently I am using below script from Markdmac
Set WshShell=CreateObject("WScript.Shell")
USERPROFILE =WshShell.ExpandEnvironmentStrings("%USERPROFILE%")
Set objFSO = CreateObject("Scripting.FileSystemObject")
If Not objFSO.FileExists(USERPROFILE &"\logo.jpg") Then
objFSO.CopyFile "\\server\share\logo.jpg", USERPROFILE &"\logo.jpg"
End If