Batch files
-
hi ... i'm trying to execute some DOS commands from a windows application, i'm doing this by writing these commands to a batch file then execute this file. what i need is a way to capture the feedback messages from the command prompt, for example when i write (VOL C: ) on the prompt the drive (c: ) information are passed to the user ... is there is any way to catch this message. thanx
-
hi ... i'm trying to execute some DOS commands from a windows application, i'm doing this by writing these commands to a batch file then execute this file. what i need is a way to capture the feedback messages from the command prompt, for example when i write (VOL C: ) on the prompt the drive (c: ) information are passed to the user ... is there is any way to catch this message. thanx
I'd first check to see if any of the DOS commands have API counterparts. Nothing is worse than seeing
system("dir > file.txt")
and then processing the file.txt file instead ofFindFirstFile()
andFindNextFile
(). That said, check out this article and this one.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow