🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: fj.lang.visualbasic
4 messages
4 total messages Started by sasaki tadao Thu, 16 Oct 1997 00:00
ディスク容量のチェック方教えて
#1201
Author: sasaki tadao
Date: Thu, 16 Oct 1997 00:00
3 lines
532 bytes
$B#V#B$NCf$+$i!"%O!]%I%G%#%9%/$N;D$jMFNL$rD4$Y$kJ}K!$r(B
$B$4B8CN$NJ}$,$*$j$^$7$?$i!"65$($F2<$5$$!#(B
Re: $B%G%#%9%/MFNL$N%A%'%C%/J}65$($F(J
#1202
Author: B 0f J BLw9 J
Date: Thu, 16 Oct 1997 00:00
30 lines
1288 bytes
$B$I$&$b!"D3M}>pJs%7%9%F%`$N]/0f$H$$$$$^$9!#(J

> $B#V#B$NCf$+$i!"%O!]%I%G%#%9%/$N;D$jMFNL$rD4$Y$kJ}K!$r(J
> $B$4B8CN$NJ}$,$*$j$^$7$?$i!"65$($F2<$5$$!#(J

API$B$r;HMQ$7$F!"<hF@$9$kJ}K!$J$i9T$C$?$3$H$,$"$j$^$9!#(J


$B@k8@%3!<%I(J
Declare Function GetDiskFreeSpace Lib "kernel32" Alias "GetDiskFreeSpaceA"
(ByVal lpRootPathName As String, lpSectorsPerCluster As Long,
lpBytesPerSector As Long, lpNumberOfFreeClusters As Long,
lpTtoalNumberOfClusters As Long) As Long


$B<B9T%3!<%I(J
Dim lwk as Long
    lwk = GetDiskFreeSpace(vbNullString, secter_cluster, bytes_sector,
freeclusters, diskclusters)
    If lwk = 1 Then
        lwk = ((freeclusters * secter_cluster * bytes_sector) / 1024) /
1024
        lbFreeDisk2 = Format(lwk, "###,###,##0") & " MB"
    End If


$B$3$l$G$$$1$k$+$H;W$$$^$9!#(J
$B$G$o$G$o(J
 
Re: ディスク容量のチェック方教えて
#1203
Author: Sato Masahiro
Date: Thu, 16 Oct 1997 00:00
11 lines
893 bytes
In article <tadao-1610971836070001@tadao.ga.sony.co.jp>, tadao@ga.sony.co.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?>l9g$O!"(JTRUE$B$rJV$7$^$9!#(J
$B$=$l0J30$O(JFALSE$B$rJV$7$^$9!#(J

$B8e$O!"K>$_$NC10L$K$J$k$h$&$K!"JV$5$l$?CM$r7W;;$9$l$P$$$$$G$7$g$&!#(J

$B$G$o$G$o(J
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads