I have the following code that works directly from a command prompt, but doesn't work from Excel VBA:
if I remove the redirected output the script runs in the command window, but I don't know how to capture it other than redirecting to a file.
Any help is definitely appreciated.
)
Code:
retVal = Shell("cscript C:\Scripts\Exchange\Mailbox_Sizes_Info.vbs > C:\Scripts\Exchange\Mailbox_Sizes_Info.txt")
Any help is definitely appreciated.