ajetrumpet
Banned
- Local time
- Yesterday, 23:54
- Joined
- Jun 22, 2007
- Messages
- 5,638
does anyone know if there is a way that I can print the output of a DOS command through VBA?
I have tried this:
I am in the correct local directory and the file does exist. The problem is that it tells me that the file transfer is complete, but the text file always turns up empty. If there is a way I can get this in a text file, or even better, into the VBA window by the "debug.print" method, I would be greatful. thanks all!
I have tried this:
Code:
dir > dirs.txt
I am in the correct local directory and the file does exist. The problem is that it tells me that the file transfer is complete, but the text file always turns up empty. If there is a way I can get this in a text file, or even better, into the VBA window by the "debug.print" method, I would be greatful. thanks all!
Last edited: