sPath = "/Path/To/My/Directory"
sTemp = TEMP$
' You may have to quote sPath before sending it to a shell
SHELL "(cd " & sPath & "; du -b | tail -n1 > " & sTemp & ")" WAIT
PRINT "Directory size is "; File.Load(sTemp); " bytes"
KILL sTemp
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=29457
Try something like that:
sPath = "/Path/To/My/Directory"
sTemp = TEMP$
' You may have to quote sPath before sending it to a shell
SHELL "(cd " & sPath & "; du -b | tail -n1 > " & sTemp & ")" WAIT
PRINT "Directory size is "; File.Load(sTemp); " bytes"
KILL sTemp