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
Check whether the Drive is valid or not ?
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Check whether the Drive is valid or not ?
Dear SITL,
you can even use your approach and then to consider "MYSPACE = 0" as an invalid drive. However, this only tells you if the specific target drive has space available and not if this exists.
Hope this helps you.
Regards
you can even use your approach and then to consider "MYSPACE = 0" as an invalid drive. However, this only tells you if the specific target drive has space available and not if this exists.
Hope this helps you.
Regards
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Who is online
Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 200 guests