-
I am trying to shell a dos program (nbtstat) with a redirect to write to a file. I cant get it to write to the file. Any ideas on what i should do?
i need to access the results that the dos program puts on the screen. I need to do this in windopws with vb of course.
any ideas how i can get access to it?
-
cant you just append
> output.txt
to the end of your shell command?
A.
-
-
I've done this !!!!
I wote a batch file that did it because VB had a problem with the >> mark, the just called that .bat file with vbhide
(I even copied (stole?) the coloured dots from winzip for the lights on and off for data movement states :))
-
actually, re-reading your post (and knowing nothing about the app you`re trying to direct) i have to say its probably not possible; at least, not if the app itself doesnt let you do it...in that case no VB program will help you (well, unless you write something to grab the window, and OCR the text into an ascii file or something).
I`ve got a similar sort of a problem at the mo - a .exe i run wants user input...i just want it to do the work and quit with no user intervention...i`ve given up on that... perhaps its time for you to find a different program to do the same thing, or write one yourself, if possible. Is there definately not an option in the program itself to do this ? (try /h /? -h -? etc to get help from it).
a.
-
But this one works !!!
I've done it before
VB's shell command can't handle > & >> so you have to put it in a batch file.
I'm not sure about you're problem though because you were too vague, you may be right...
-
i made a batch file that called it and it worked. then i called the batch file. a simple solution but it works
thanks yall