Qbasicnews.com

Full Version: geting data with qbasic
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
can qbasic get data from the dos command ipconfig also can qbasic influnce mozzilla firefox and if qbasic cant do what i want can asm if so
what is the code to and thanks in avance
You can SHELL the program, route its output to a textfile, and then read the textfile...that's one way of doing it.

Code:
SHELL "ipconfig>file.txt"

Of course, then you'd have to interpret the output...
yes that would work but can it open it to get the data
and can it work reverse can a txt file input data in to a program
Quote:yes that would work but can it open it to get the data
and can it work reverse can a txt file input data in to a program
Dunno about your first question but the second one is easy...yes.

Code:
program<data
so it can influince mozzila firefox to refresh every 10 seconds
Quote:
everett Wrote:yes that would work but can it open it to get the data
and can it work reverse can a txt file input data in to a program
Dunno about your first question but the second one is easy...yes.

Code:
program<data
Of course you can open the text file like "file.txt" in NecrosIhsan's example. This text output of IPCONFIG is real easy to work with. You probably want to get the IP Address.

Also her example of "program<data" for passing a text data file to a program is correct, BUT ONLY if the program in question is expecting and inputting text input.

In your original post, you asked if Qbasic can influence Mozilla Foxfire. What do you mean by influence? Whatever it is, I doubt if you can do it from Qbasic.
*****
it meant to change data,make it do certen funchens,ect
and if qbasic or asm can
No.

It's logically separated. One is running on simulated DOS (on XP) and one is running on Windows XP.

With FB, still no. Theoretically that's a security risk so nothing should let you modify an already open instance of a program. Theoretically you shouldn't be able to read the contents of an already open instance (if it doesn't want you to) but I think you can not sure how.

You can also create a new instance of a browser window with FB and maybe even QB somehow. (SHELLING, like Nec said?) Then that'd be ok.
it would be awsome if u could, maybe make like a new OS that can run on Windows, it can load programs in windows, or have some custom programs made on it like a new paint, notepad, etc.