IF name of operating system as lowercase contains "win" THEN concatenation "," of
(
preceding text of first ":" of name of it as string & "||" &
(
if exists free space of it then
(
(
free space of it/
(
1024 * 1024
)
)
as string
)
else "NONE"
)
& "|" &
(
if exists total space of it then
(
(
total space of it /
(
1024 * 1024
)
)
as string
)
else "NONE"
)
)
of drives whose
(
type of it = "DRIVE_FIXED"
)
ELSE concatenation "," of
(
following text of first "/" of name of it as string & "||" &
(
if exists free space of it then
(
(
free space of it/
(
1024 * 1024
)
)
as string
)
else "NONE"
)
& "|" &
(
if exists total space of it then
(
(
total space of it /
(
1024 * 1024
)
)
as string
)
else "NONE"
)
)
of drives whose
(
type of it = "DRIVE_FIXED"
)
IF name of operating system as lowercase contains "win" THEN concatenation "," of (preceding text of first ":" of name of it as string & "||" & (if exists free space of it then ((free space of it/ (1024 * 1024)) as string) else "NONE") & "|" & (if exists total space of it then ((total space of it / (1024 * 1024)) as string) else "NONE")) of drives whose (type of it = "DRIVE_FIXED") ELSE concatenation "," of (following text of first "/" of name of it as string & "||" & (if exists free space of it then ((free space of it/ (1024 * 1024)) as string) else "NONE") & "|" & (if exists total space of it then ((total space of it / (1024 * 1024)) as string) else "NONE")) of drives whose (type of it = "DRIVE_FIXED")