|
-
Apr 13th, 2000, 09:02 AM
#1
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?
-
Apr 13th, 2000, 05:10 PM
#2
Hyperactive Member
cant you just append
> output.txt
to the end of your shell command?
A.
-
Apr 13th, 2000, 09:53 PM
#3
-
Apr 13th, 2000, 10:04 PM
#4
Fanatic Member
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 )
-
Apr 13th, 2000, 10:41 PM
#5
Hyperactive Member
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.
-
Apr 13th, 2000, 11:08 PM
#6
Fanatic Member
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...
-
Apr 14th, 2000, 02:33 AM
#7
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|