smithy1981
IS-IT--Management
Hi, I am trying to write a script that will copy files to the c:\windows or c:\winnt folder depending on the version of windows being used. Have tried using c:\%windir% but this just creates a folder called %windir%, is there a way of copying automatically to the correct folder or do you need to find the version of windows and then depending on that, hardcode the destination.
My current script looks as follows
Dim oCopy, oDest, oSource, oShell
Set oCopy = CreateObject("Scripting.FileSystemObject")
oDest = "c:\%windir%"
oSource = "c:\test"
oCopy.CopyFolder oSource, oDest
Thanks
My current script looks as follows
Dim oCopy, oDest, oSource, oShell
Set oCopy = CreateObject("Scripting.FileSystemObject")
oDest = "c:\%windir%"
oSource = "c:\test"
oCopy.CopyFolder oSource, oDest
Thanks