07-02-2003, 06:00 PM
I'd like the prog to display what is on a certain directory, so it isn't necessary (i hate this word) to remember the name when opening the file. How would I do that?
Loading files into a program
|
07-02-2003, 06:00 PM
I'd like the prog to display what is on a certain directory, so it isn't necessary (i hate this word) to remember the name when opening the file. How would I do that?
07-02-2003, 07:06 PM
Check the FILES command. Or try the file browser modules you can find at my site
Antoni
07-06-2003, 09:27 PM
Look up DIR$ command which is available only in QB71(a.k.a PDS)
07-07-2003, 12:04 AM
Quote:Look up DIR$ command which is available only in QB71(a.k.a PDS)Don't call it PDS, since QBasic is hardly a "Professional Development System" anymore.
am an asshole. Get used to it.
07-07-2003, 12:50 AM
He called it precisely what the creators of it called it. Qbasic wasn't ever a "professional development system." PDS was always just *that*. It was never Qbasic. Qbasic was never PDS.
ravelling Curmudgeon
(geocities sites require copying and pasting URLs.) I liked spam better when it was something that came in a can. Windows should be defenestrated.
07-07-2003, 11:06 AM
Quote:Don't call it PDS, since QBasic is hardly a "Professional Development System" anymore. Oh c'mon give me a break! I just wrote PDS because some people think QB 7.1 and PDS are two different versions of QB where as they arent!
07-08-2003, 03:29 AM
Quote:I'd like the prog to display what is on a certain directory, so it isn't necessary (i hate this word) to remember the name when opening the file. How would I do that?I assume that if there is more than one file on the directory, then your program will at some point open more than one file. Am I ok so far? Antoni mentioned using the FILES command. This works, BUT it puts the directory list onto the screen. I don't think this is what you want. TheBigBasicQ mentioned using DIR$, but like he said that's only with PDS. Here's what I would do: Code: PATH.FILESPEC$ = "\the path you want\the filespec you want"´ NOTE: If you run under different versions of MS-DOS or different versions of Windows, the format produced by the DIR command may be different. *****
07-11-2003, 01:10 PM
So, thanks for all the tips. I didn't know any of the suggested commands like files, chdir, etc. I also tried Moneo's suggestion, but that was in a hurry, and didn't work. I'll take a better look after it later, after coming back from my interrail adventures........ :bounce:
07-11-2003, 10:05 PM
I used to have a program that Na_th_an gave to me that got the directory of a file such as windows and saved it to a text file so that it could be displayed in any way withing QB but I don't remember how he did it. You should ask him.
ovaProgramming.
One night I had a dream where I was breaking balls. The next morning, BALLSBREAKER was born. Quote: Excellent. Now you can have things without paying for them. BALLSBREAKER 2 ~-_-Status Report-_-~ Engine: 94% Graphics: 95% Sound: 100% A Severe Error has crippled BB2 for the time being... I have to figure it out, but until then you won't see much of it . ----------------------------- |
« Next Oldest | Next Newest »
|