Hello all, I hope everyone is doing well.
I have a situation here where Im trying to compare the user home directory on the new Win2003 server with the home folders on the old server.
I want to print the folders which are not found to a logfile
This will give me an idea of the folders who werent migratd properly
I want to look through the local home folder location and compare this against the old home folder structure using the objfolder.name and objFolder.CreationDate properties
Please see the script I have below
Code========================================
NewSvr = "\####WFSP03\"
NewSvrPath = "\\&&&&WFSP03\e$\Home"
Wscript.Echo(NewSvrPath)
Checkpoint = "M:\Home"
Set objNetwork =CreateObject("Wscript.NetWork")
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFolder = objFSO.GetFolder("E:\Home")
Set colSubfolders = objFolder.Subfolders
Here is where
i keep recieving a "expected
statement error"
objNetWork.MapNetWorkDrive "n:", & "\\****WFSP03\e$"
For Each objSubfolder in colSubfolders
Wscript.Echo objSubfolder.Name, objSubfolder.dateCreated
If ObjFSO.FolderExsist(NewSvrPath & objFolder.Subfolders) Then
wscript.echo "This folder exist"
Else
wscript.echo "This folder does not exists"
End If
Next
I have a situation here where Im trying to compare the user home directory on the new Win2003 server with the home folders on the old server.
I want to print the folders which are not found to a logfile
This will give me an idea of the folders who werent migratd properly
I want to look through the local home folder location and compare this against the old home folder structure using the objfolder.name and objFolder.CreationDate properties
Please see the script I have below
Code========================================
NewSvr = "\####WFSP03\"
NewSvrPath = "\\&&&&WFSP03\e$\Home"
Wscript.Echo(NewSvrPath)
Checkpoint = "M:\Home"
Set objNetwork =CreateObject("Wscript.NetWork")
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFolder = objFSO.GetFolder("E:\Home")
Set colSubfolders = objFolder.Subfolders
Here is where
i keep recieving a "expected
statement error"
objNetWork.MapNetWorkDrive "n:", & "\\****WFSP03\e$"
For Each objSubfolder in colSubfolders
Wscript.Echo objSubfolder.Name, objSubfolder.dateCreated
If ObjFSO.FolderExsist(NewSvrPath & objFolder.Subfolders) Then
wscript.echo "This folder exist"
Else
wscript.echo "This folder does not exists"
End If
Next