How to run DOS program with output

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.

The problem is that the commnd "> txt.out" is a dos command line command. Then shell is not a command line. It just run programs. So I don't know if what the user suggested above wrote works.

But if that does not work, try type your command into *.bat file. Then use the shell command to run the *.bat file. This should work just fine. The only side effect that you will see a command window open and flash and close. So you might want to specific minimize option when you execute the shell command, so the user will not see a flashing screen.

I’ve seen a number of people looking for examples of how to access web services from VB6. I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…

Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…