Here is a rather rudimentary attempt at returning available volumes. Problem is when it runs FindStr() is returning mixed values so I can't proceed. I believe its how I am stripping the data using SplitStr().
OFF-Topic: Can you swap the Save and Submit buttons around please on this forum as I am forever hitting the Save button!
Code: Select all
/*
************************************************************
**
** Created by: CodeBench 0.13 (16.02.2010)
**
** Project: DialogBox
**
** File:
**
** Date: 17-04-2011 16:14:49
**
************************************************************
*/
Execute("assign devices >TEXTCLIP:")
type, data = GetClipboard()
devices = {}
devices, noofdevices = SplitStr(data," ")
For x = 1 to noofdevices-1
; List Hard Drives
Print(devices[x-1] .. " " .. FindStr(devices[x-1],"DH",FALSE) .. "\n")
; Print("Hard drive found\n")
;EndIf
Next
WaitLeftMouse