ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Copy file without open it??? (https://www.excelbanter.com/excel-programming/301003-copy-file-without-open.html)

vatov

Copy file without open it???
 
How can I copy a file without open it????
The file is on read-only network drive?:confused

--
Message posted from http://www.ExcelForum.com


Nikos Yannacopoulos[_5_]

Copy file without open it???
 
Dim fSource As String, fDestination As String
fSource = "J:\Folder1\Folder2\...\Filename1.ext"
fDestination = "K:\FolderX\FolderY\...\FilenameZ.ext"
FileCopy fSource, fDestination

HTH,
Nikos


"vatov " wrote in message
...
How can I copy a file without open it????
The file is on read-only network drive?:confused:


---
Message posted from http://www.ExcelForum.com/





All times are GMT +1. The time now is 12:30 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com