ChDrive Statement

ํ˜„์žฌ ๋“œ๋ผ์ด๋ธŒ๋ฅผ ๋ณ€๊ฒฝํ•ฉ๋‹ˆ๋‹ค.

warning

Some DOS-specific file and directory functions are no longer provided in LibreOffice, or their function is only limited. For example, support for the ChDir, ChDrive and CurDir functions is not provided. Some DOS-specific properties are no longer used in functions that expect file properties as parameters (for example, to differentiate from concealed files and system files). This ensures the greatest possible level of platform independence for LibreOffice. Therefore this feature is subject to removal in a future release.


note

The ScriptForge library in LibreOffice 7.1 introduces the FileSystem service with methods to handle files and folders in user scripts.


Syntax:


  ChDrive Text As String

Parameters:

Text: ์ƒˆ ๋“œ๋ผ์ด๋ธŒ์˜ ๋“œ๋ผ์ด๋ธŒ ๋ฌธ์ž๋ฅผ ํฌํ•จํ•˜๋Š” ์ž„์˜์˜ ๋ฌธ์ž์—ด ์‹์ž…๋‹ˆ๋‹ค. ํ•„์š”ํ•˜๋ฉด URL ํ‘œ๊ธฐ๋ฒ•์„ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

๋“œ๋ผ์ด๋ธŒ์—๋Š” ๋Œ€๋ฌธ์ž๋ฅผ ํ• ๋‹นํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. Windows์—์„œ ๋“œ๋ผ์ด๋ธŒ์— ํ• ๋‹นํ•˜๋Š” ๋ฌธ์ž๋Š” LASTDRV์˜ ์„ค์ •์— ์˜ํ•ด ์ œํ•œ๋ฉ๋‹ˆ๋‹ค. ๋“œ๋ผ์ด๋ธŒ ์ธ์ˆ˜๊ฐ€ ์—ฌ๋Ÿฌ ๋ฌธ์ž๋กœ ์ด๋ฃจ์–ด์ง„ ๋ฌธ์ž์—ด์ผ ๊ฒฝ์šฐ ์ฒซ ๋ฌธ์ž๋งŒ ์˜๋ฏธ๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค. ์กด์žฌํ•˜์ง€ ์•Š๋Š” ๋“œ๋ผ์ด๋ธŒ์— ์•ก์„ธ์Šคํ•˜๋ ค๊ณ  ํ•˜๋ฉด OnError ๋ฌธ์œผ๋กœ ์‘๋‹ตํ•  ์ˆ˜ ์žˆ๋Š” ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค.

Error codes:

5 ์ž˜๋ชป๋œ ํ”„๋กœ์‹œ์ € ํ˜ธ์ถœ์ž…๋‹ˆ๋‹ค.

68 ์žฅ์น˜๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.

76 ๊ฒฝ๋กœ๋ฅผ ์ฐพ์„ ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.

Example:


  Sub ExampleChDrive
      ChDrive "D" REM Only possible if a drive 'D' exists.
  End Sub

Please support us!