[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 DISKCHANGE()
 Change the current DOS disk drive
------------------------------------------------------------------------------
 Syntax

     DISKCHANGE(<cDrive>) --> lSuccess

 Arguments

     <cDrive> specifies the letter of the disk drive to change to.

 Returns

     DISKCHANGE() returns true (.T.) if successful; otherwise, it returns
     false (.F.).

 Examples

     .  This example uses DISKCHANGE() to change to drive "D":

        IF DISKCHANGE("D:")
           ? "Successfully changed"
        ELSE
           ? "Not changed"
        ENDIF


     .  This example builds a string that contains all currently
        available drives on your system:

        FUNCTION AllDrives()
           LOCAL wI, cDrives := ""

           FOR wI := 1 TO 26
              IF DISKCHANGE( Chr(wI + 64) )
                 cDrives := cDrives + Chr(wI + 64)
              ENDIF
           NEXT
        RETURN cDrives


 Files   Library is EXTEND.LIB.


See Also: DIRCHANGE() DISKNAME()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson