[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 264: mysqli_fetch_assoc(): Couldn't fetch mysqli_result
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 326: mysqli_free_result(): Couldn't fetch mysqli_result
Pete's QBASIC Site Discuss QBasic, Freebasic, QB64 and more 2009-08-11T10:02:46-05:00 http://petesqbsite.com/phpBB3/app.php/feed/topic/3114 2009-08-11T10:02:46-05:00 2009-08-11T10:02:46-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=19680#p19680 <![CDATA[Drive Information?]]> Statistics: Posted by wolfman775 — Tue Aug 11, 2009 10:02 am


]]>
2009-08-10T08:54:53-05:00 2009-08-10T08:54:53-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=19657#p19657 <![CDATA[Use the "shell" command.]]> Then use simple OS command line commands and save the output; just redirect it to a text file.

For example, to get the name of the harddrive, use the Volume command and pipe it to a text file (then read the text file later).

Code:

SHELL "vol > hdd_labl.txt"
That will shell out to the command prompt run the "vol" command and send the results to a newly created file named hdd_labl.txt which you can open and read later.

For disk size the directory command (dir) has a bunch of options.
the last two lines always output, are the the number of files in the current directory (folder) and the free disk space.

The output will look something like this:

Code:

 Volume in drive C has no label. Volume Serial Number is 686B-F0F2 Directory of C:\04/13/2009  07:27 AM    <DIR>          7b6bee7553a7b2f5ce2dda1d01/30/2007  12:24 PM    <DIR>          8c3127ede316849a3e19bd723f12/08/2006  05:16 PM                 0 CONFIG.SYS04/15/2009  07:40 AM    <DIR>          Documents and Settings05/29/2009  09:53 AM    <DIR>          Program Files04/27/2009  07:51 AM    <DIR>          QBasic03/11/2009  10:53 AM    <DIR>          QuickBas08/06/2009  04:30 PM    <DIR>          Temp08/10/2009  07:48 AM    <DIR>          WINDOWS               1 File(s)      1,892,240 bytes               8 Dir(s)  35,276,324,864 bytes free              29 Dir(s)  35,276,324,864 bytes free
Now good practice is to use specific file extensions for easier recognition by others - so if you forget to 'cleanup' they might know what the file is.
Suggestions:
TXT (text)
LST (list)
TMP (temp)
$$$ (string-temp)
$ (string temp)
QB (qbasic)

Another best practice would be to just "kill" the file after you are done with it, using the BASIC KILL command.

Hope this helps.

Statistics: Posted by UWLabs — Mon Aug 10, 2009 8:54 am


]]>
2009-08-10T03:23:52-05:00 2009-08-10T03:23:52-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=19654#p19654 <![CDATA[Drive Information?]]>
Thanks in advance.

Statistics: Posted by wolfman775 — Mon Aug 10, 2009 3:23 am


]]>