>I have one, maybe two, little problem|problems. Whenever I
>choose Menu -> Change Drive form the "Pick File" option in the
>startup menu, I do not see my A-drive (and I am pretty sure I have
>got one). All other drives are shown perfectly. Of course Open
>and typing a:<Enter> has the same effect but none the less...
For some reason, I choose not to show removable drives in the drive list.
Anyway, I have made a note to change it. For now, you can use the following
macro - note that it will only work if you press the indicated key (<alt
f10>, but you can change that) - if you select "Change Drive" from the menu,
you will still get the old, built-in command. Macro follows - you should
add this to your autoload list, or to your .ui:
proc ChangeDriveMenu()
string drivestr[_MAXPATH_]
integer cur_id, drive_id
drivestr = ""
cur_id = GetBufferId()
drive_id = CreateTempBuffer()
while NextDiskConnection(drivestr, _INCLUDE_REMOVEABLE_DRIVES_)
AddLine(drivestr)
endwhile
BegFile()
lFind(GetDrive() + ':', "gi")
if List("Select Drive", LongestLineInBuffer() + 1)
drivestr = iif(CurrChar(1) <> ASC(" "), GetDir(GetText(1, 1)),
AddTrailingSlash(GetText(5,sizeof(drivestr))))
Set(PickFilePath, drivestr + SplitPath(Query(PickFilePath),
_NAME_|_EXT_))
EndProcess(-1)
endif
GotoBufferId(cur_id)
AbandonFile(drive_id)
end