Article ID: 198075
Article Last Modified on 11/18/2003
'-----------------------------------------------------------
' FUNCTION: InitDiskInfo
'
' Called before calculating disk space to initialize
' values used/determined when calculating disk space
' required.
'-----------------------------------------------------------
'
Sub InitDiskInfo()
'
'Initialize "table" of drives used and disk space array
'
gstrDrivesUsed = gstrNULL
Erase gsDiskSpace
mlTotalToCopy = 0
'
'Get drive/directory for temporary files
'
mstrConcatDrive = UCase$(Environ$(gstrTMP_DIR))
If mstrConcatDrive = gstrNULL Then
mstrConcatDrive = UCase$(Environ$(gstrTEMP_DIR))
If mstrConcatDrive = gstrNULL Then
Dim iRet As Integer
iRet = MsgError(Error$ & LS$ & "Unable to determine the " & _
"temporary directory. " & vbCrLf & _
"Please make sure the 'TEMP' and/or 'TMP' " & _
"environment variables are defined.", _
MB_OK Or MB_ICONSTOP, gstrTitle, MSGERR_ERROR)
ExitSetup frmSetup1, gintRET_FATAL
End If
End If
AddDirSep mstrConcatDrive
Keywords: kbappsetup kbprb kbwizard kbpending kbcode KB198075