FileCopy Statement

ํŒŒ์ผ์„ ๋ณต์‚ฌํ•ฉ๋‹ˆ๋‹ค.

๊ตฌ๋ฌธ:


FileCopy TextFrom As String, TextTo As String

๋งค๊ฐœ ๋ณ€์ˆ˜:

TextFrom: ๋ณต์‚ฌํ•  ํŒŒ์ผ์˜ ์ด๋ฆ„์„ ์ง€์ •ํ•˜๋Š” ์ž„์˜์˜ ๋ฌธ์ž์—ด ์‹์ž…๋‹ˆ๋‹ค. ์ด ์‹์€ ์„ ํƒ์  ๊ฒฝ๋กœ์™€ ๋“œ๋ผ์ด๋ธŒ ์ •๋ณด๋ฅผ ํฌํ•จํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์›ํ•  ๊ฒฝ์šฐ URL ํ‘œ๊ธฐ๋ฒ•์œผ๋กœ ๊ฒฝ๋กœ๋ฅผ ์ž…๋ ฅํ•  ์ˆ˜๋„ ์žˆ์Šต๋‹ˆ๋‹ค.

TextTo: ์›๋ณธ ํŒŒ์ผ์„ ๋ณต์‚ฌํ•  ์œ„์น˜๋ฅผ ์ง€์ •ํ•˜๋Š” ์ž„์˜์˜ ๋ฌธ์ž์—ด ์‹์ž…๋‹ˆ๋‹ค. ์ด ์‹์€ ๋Œ€์ƒ ๋“œ๋ผ์ด๋ธŒ, ๊ฒฝ๋กœ ๋ฐ ํŒŒ์ผ ์ด๋ฆ„์ด๋‚˜ URL ํ‘œ๊ธฐ๋ฒ•์œผ๋กœ ๋œ ๊ฒฝ๋กœ๋ฅผ ํฌํ•จํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

์ฐธ๊ณ  ์•„์ด์ฝ˜

์—ด์ง€ ์•Š์€ ํŒŒ์ผ๋งŒ FileCopy ๋ฌธ์„ ์‚ฌ์šฉํ•˜์—ฌ ๋ณต์‚ฌํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.


Error codes:

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

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

์˜ˆ:


Sub ExampleFileCopy
    FileCopy "c:\autoexec.bat", "c:\Temp\Autoexec.sav"
End Sub

Please support us!