I have written a script that executes the Microsoft Repadmin command to force AD replication. I need to grab the results from it so I can use an InStr to determine if it ran successfully or not.
Can anyone help me? For simplicity sake of an example how about we use this code
How can I get what would be displayed as the Dir results to be an array that I could loop through? I think I want to use stdIN but am not sure how to do it.
I hope you find this post helpful.
Regards,
Mark
Can anyone help me? For simplicity sake of an example how about we use this code
Code:
WSHShell = Createobject("Wscript.Shell")
Call WSHShell.Run("CMD.EXE /C DIR C:")
How can I get what would be displayed as the Dir results to be an array that I could loop through? I think I want to use stdIN but am not sure how to do it.
I hope you find this post helpful.
Regards,
Mark