PDA

View Full Version : Any old Qbasic programmers ?


Beaver
08-13-2001, 11:11 PM
When using the old Qbasic how can you make your program execute a ???.bat file

alternativley can you access FTP from Qbasic?

Thanks ... Steve

kanga
08-14-2001, 05:28 AM
put the line:

SHELL "test.bat"

in your program (where test.bat is ofcoz the
name of the bat file you want to execute)

it isn't possible to access ftp from qbasic,
but it should be possible to call an external
ftp client and let that do the ftp-things,
and then return back to qbasic -- calling
an external program is ofcourse again with
the SHELL "..." thingy

kanga

Much0S
08-14-2001, 07:17 AM
R U Still running Dos 3.2 as well? :P

kanga
08-14-2001, 08:42 AM
i'm not, but i just had fun some years back coding in qb 4.5 http://bbs.adultwebmasterinfo.com/ubb/smile.gif

ofcourse if you want to code some serious
applications, beaver, you'd better use some
other language...

kanga

Beaver
08-14-2001, 01:13 PM
http://bbs.adultwebmasterinfo.com/ubb/smile.gif http://bbs.adultwebmasterinfo.com/ubb/smile.gif Yeeeeeeeeeeeeeeeeeeeeeees it works http://bbs.adultwebmasterinfo.com/ubb/smile.gif http://bbs.adultwebmasterinfo.com/ubb/smile.gif
http://bbs.adultwebmasterinfo.com/ubb/smile.gif http://bbs.adultwebmasterinfo.com/ubb/smile.gif Coooooooooooooooooooooooooool http://bbs.adultwebmasterinfo.com/ubb/smile.gif http://bbs.adultwebmasterinfo.com/ubb/smile.gif

Big thanks for that info kanga.

he he I know its old but its all I have handy
the *.bat file contains the command ftp -s:update.txt
so that takes care of the auto ftp uploading now I just have
one tiny problem left to solve.

I want the program to be able to download a datafile from the
web WITHOUT using ftp because that would mean including
the username and password in the software.

Sooooooo how would I download a file stored at
http://someplaceontheweb.com/mydata.dat

Any ideas on how to do it?

Thanks ... Steve