ChDrive Statement

āˇ€āļ­āˇŠāļ¸āļąāˇŠ āļ°āˇāˇ€āļšāļē āˇ€āˇ™āļąāˇƒāˇŠ āļšāļģāļēāˇ’.

Warning Icon

This statement currently does not work as documented. See this issue for more information.


āļšāˇāļģāļš āļģāˇ“āļ­āˇ’āļē:


ChDrive Text As String

āļ´āļģāˇāļ¸āˇ’āļ­āˇ“āļąāˇŠ:

Text: āļąāˇ€ āļ°āˇāˇ€āļšāļēāˇš āļ°āˇāˇ€āļš āļ…āļšāˇ”āļģ āˇƒāˇ„āˇ’āļ­ āļ…āļąāˇ” āļŊāļšāˇ”āļĢāˇ” āˇ€āˇāļŊ. āļ”āļļāļ§ āļ…āˇ€āˇāˇŠâ€āļē āļąāļ¸āˇŠ URL āļ…āļ‚āļšāļąāļē āļˇāˇāˇ€āˇ’āļ­ āļšāˇ… āˇ„āˇāļš.

The drive must be assigned a capital letter. Under Windows, the letter that you assign the drive is restricted by the settings in LASTDRV. If the drive argument is a multiple-character string, only the first letter is relevant. If you attempt to access a non-existent drive, an error occurs that you can respond to with the OnError statement.

Error codes:

5 Invalid procedure call

68 Device not available

76 Path not found

āļ‹āļ¯āˇāˇ„āļģāļĢāļē:


Sub ExampleChDrive
    ChDrive "D" REM  'D' āļ°āˇāˇ€āļšāļē āļ‡āļ­āˇŠāļąāļ¸āˇŠ āļ´āļ¸āļĢāļšāˇŠ āļšāˇ… āˇ„āˇāļš.
End Sub

Please support us!