Check whether the Drive is valid or not ?
Posted: Wed Jul 05, 2017 2:11 am
Dear Francesco,
For checking whether the Drive is valid or not,
Here is some work around...
Set Variable MYSPACE to
Set Variable MYPATH to D:\TestPath
Set Variable MYPATH_PARSED to
Parse String $MYPATH$ into Variables MYPATH_PARSED and (Split at first occurrence of pattern)
Get Total Space on $MYPATH_PARSED$ into variable MYSPACE
MYSPACE is Zero for invalid drive.
I feel, it's simpler than calling a library function & parsing.
Appreciate your comment.
Regards
SITL
For checking whether the Drive is valid or not,
Here is some work around...
Set Variable MYSPACE to
Set Variable MYPATH to D:\TestPath
Set Variable MYPATH_PARSED to
Parse String $MYPATH$ into Variables MYPATH_PARSED and (Split at first occurrence of pattern)
Get Total Space on $MYPATH_PARSED$ into variable MYSPACE
MYSPACE is Zero for invalid drive.
I feel, it's simpler than calling a library function & parsing.
Appreciate your comment.
Regards
SITL