Qbasicnews.com

Full Version: FileSystem Challenge!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I started a challenge to write a simple file system in under 100 lines of code, you have aprox 5 hours to complete, so start!

Details:
-Must be coded in QBasic, and must be *.bas file or code
-Must be done in five hours or less
-Must be under 100 lines of code
-No external librarys or code!
-Have fun with this one!
[syntax="qbasic"]
Print "Type COPY CON (filename) to create files, TYPE (filename) to print files, DIR to list files, EXIT to quit."
SLEEP
SHELL[/syntax]
Yo, FSoft.. I know you're trying to learn how to program your own OS in QB... but a tip would be to actually learn how to program first.

And if you want to steal code, ask for help instead of discuising it as a challenge.


Weak...
I would give it a try, but 5 hours? I only now found it and I'm dead tired. Could you prolong to 24h?

I could try...
I wrote a simple one for Lachie's LONG in 2 hours. I can't enter it, 'cause 1.- It's now Lachie's, 2.- LONG has not been released yet.
Quote:I wrote a simple one for Lachie's LONG in 2 hours. I can't enter it, 'cause 1.- It's now Lachie's, 2.- LONG has not been released yet.

I wonder where Lachie is now.....(Probably graduated and doesn't have a connection right now. :*()
Lachie is always off the internet during summers. He accesses internet from college. I guess we will have him back by this fall.
no, i am now trying to get some free source code, it is actually a challenge, and yes i will prolong it to 24 hours, please post it when you are done, i wanna see if anyone else can do it, other than my friend!
Quote:no, i am now trying to get some free source code, it is actually a challenge, and yes i will prolong it to 24 hours, please post it when you are done, i wanna see if anyone else can do it, other than my friend!

There is infact a newbie section to 'ask' about things rather than trick people into giving them to you.
hya,

no when I'm more awake, perhaps you will specify what EXACTLY do you mean by "filesystem" fomr what I gather just bunch of dos type commands to brows in the folders, delete/rename files, or smth what Z!re is doing?

Well then here you are:
Code:
DO
Dir.$ = CURDIR$ + "\"
PRINT Dir.$;
LINE INPUT Cmd$
IF Cmd$ > "" THEN
   IF "exit" = LCASE$(LTRIM$(RTRIM$(Cmd$))) THEN EXIT DO
   SHELL Cmd$
LOOP

Anyway, If i'd be up to it then <100 line limit... heheh I'd need at least 200 or 300 lines (I'm lousy coder)

And since you openly admitted that it is to you to get other's people code then well -forget it. Go learn some qb first and then come back.

My idea about posting challenges is that YOU who you post one can do what you are asking others to do. Not that If I want to have some superultra a* algo, but I myself have even no idea what it is (or how to code one) and then I post a challenge about it to get the code. It's cheep you know.

For this there is Programming help/newby help or even general programming sections but NOT challenge section
Pages: 1 2