conception_native_0123
Well-known member
- Local time
- Today, 12:04
- Joined
- Mar 13, 2021
- Messages
- 1,923
do not know if this has been answered before but i found this one
but it not quantify my issue. i am running test code to copy text files from one directory to other. i keep getting path not found error. but source file exists. what i doing wrong? thank you. here is my code
path not found in filecopy-VBForums
Im wondering whats wrong with my code Since C:\Manual.txt is my source file and C:\Documents and Settings\Cedrich Lord\My Documents\Bluetooth Exchange Folder\ is the destination folder FileCopy "C:\Manual.txt", "C:\Documents and Settings\Cedrich Lord\My Documents\Bluetooth Exchange...
www.vbforums.com
Code:
Public Sub copyTXTs()
On Error Resume Next
Dim sFile As String
Dim tFile As String
Const dirSource As String = "C:\finance\"
Const dirTarget As String = "C:\finance\new\"
sFile = "celtic.txt"
tFile = "celtic.txt"
FileCopy dirSource & sFile, dirTarget & tFile
Exit Sub