I have tried to "shell out" (from a VB app) 3 different ways:

1. using the CreateProcess API
2. using the ShellExecute API
3. using the shell function (intrinsic to VB)

The problem is they can all execute a command like "dir", but not a command like "dir > outputfile.txt".

How do I get a DOS/Novell command to output its results to a file from within VB?