Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper 5.3 . Guide To CA-Clipper - <b>diskchange()</b> http://www.X-Hacker.org [<<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()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson