I have a command line application that lists various attributes of Active Directory users. I can run the application from the command line and have the results output to a text file, but when trying via VB there is no output.
Here is the code -
Private Sub Command1_Click()
Shell("c:\ListUser -d -t > C:\Results.txt", vbNormalFocus)
The application runs but just no output. Any help would be greatly appreciated
The d switch represents the disabled users and the t switch formats the output into tab delimited. I want to avoid having to use any batch files and just run the app directly from VB.