|
-
Jun 25th, 2000, 02:20 AM
#1
Thread Starter
PowerPoster
How can I get the output by a DOS command by code? (Without passing it trough a file)
-
Jun 25th, 2000, 11:15 AM
#2
Not clear on what you are asking
Look at Do Event. Allow pass off to other programs.....
Is there a specific DOS command you want to execute????
-
Jun 25th, 2000, 12:33 PM
#3
Hyperactive Member
You can't get the output from a dos box using vb code. You'd have to run the output to a tmp-file which you'd then read.
Signed, Rodik ([email protected])
Programmer,usesVB6ED
===========================
Copyright©RodikCo,2002.
Dont mind this signature ;] Its old
-
Jun 25th, 2000, 12:56 PM
#4
Thread Starter
PowerPoster
ok thx anyway 
erm Jethro, I'm very unsure what you mean... DoEvents allows windows to handle the WMs as I know..?
-
Jun 25th, 2000, 01:23 PM
#5
Fox okay by reading the post again its a bit clearer
What you want to do l think is:
1. Execute a DOS command
2. Have access in vb to the results generated by that command
Is this right???????? What DOS command, maybe a work around using "C" or C++ to emulate the actual command and pass results ByVal back to the vb calling routine.
Have dones this, (at least Phantomd did it) for a couple of Unix calls.
-
Jun 25th, 2000, 01:48 PM
#6
Hyperactive Member
What Jethro is saying, is to code the dos program in vb (or use an api call) so you wont have to use the dos cmomand at all.
But I guess that's not the point
Signed, Rodik ([email protected])
Programmer,usesVB6ED
===========================
Copyright©RodikCo,2002.
Dont mind this signature ;] Its old
-
Jun 25th, 2000, 02:01 PM
#7
That's right Rodik
In our case of course vb caren't utilise results of unix command line executes, but you can work around this by use of either a C routine to mimic the command, or as Rodik suggests, (this being a Win/Dos environment) by vb code or API calls.
If you want a specific DOS command this shouldn't be a problem.
Hope this helps, anyway logging gotta go do an ACCESS conversion for GST, (friggin Government has change Oz from a Sales Tax environment to a Goods and Services Tax environment).
-
Jun 25th, 2000, 02:13 PM
#8
Hyperactive Member
Sounds fun
Signed, Rodik ([email protected])
Programmer,usesVB6ED
===========================
Copyright©RodikCo,2002.
Dont mind this signature ;] Its old
-
Jun 26th, 2000, 05:42 AM
#9
-
Jun 26th, 2000, 07:02 AM
#10
transcendental analytic
Fox, what do you think about text recognition?
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Jun 26th, 2000, 08:41 AM
#11
Hyperactive Member
Fox did you solve your problem? The best way might be to output to a text file as already said, read the file then delete the file when your done.
eg:
shell("dir *.* > temp.txt")
"People who think they know everything are a great annoyance to those of us who do."
-
Jun 26th, 2000, 11:28 AM
#12
Thread Starter
PowerPoster
What the... 
noone
If you read my first post you know I dont want to do that...
kedaman
huh? That has nothing to do with this thread right? well, what do you mean? Scanning pictures and recognize text?
Jethro
Mhm... good idea! But I still have the problem how to catch the output without files then i think... any ideas?
-
Jun 26th, 2000, 12:15 PM
#13
Depends on what you want really
If a single DOS command, will pass on to phantom and see what he thinks....he does all our low level stuff.
If multiple DOS command parser, then no ideas sorry.
Will muck around with the Dir command and see what can be done........
Guess something like
Shell("dir *.txt > clipboard or something")...hmmm....need to somehow get output to RAM location then extract from there.....this is probably beyond my knowledge, will post to local "C" site and see what the guys think there..
Probably that doesn't help you, just indicating am thinking on the problem and seeking help from the local computer guys & girls.
Maybe Megatron or Gen-X can think of an answer
-
Jun 26th, 2000, 06:11 PM
#14
transcendental analytic
Well i'm sure you would rather dump it in a file than use text recognition, you can't even get a whole page, well actually can with |more but that's an ugly way to do it. Aaron posted a code for textrecognition somwhere you could search for it
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
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
|