FileCopy "C:\Users\bfuchs\Downloads\Tables_2017-Nov-05_2053.zip","E:\CaspioBackups"
Shell("copy E:\test\y.txt E:\test\x.txt")
Option Explicit
Sub Test()
Dim ReturnValue as Variant
ReturnValue = Shell("Copy C:\Users\bfuchs\Downloads\Tables_2017-Nov-05_2053.zip E:\CaspioBackups\")
End Sub
ReturnValue = Shell("Copy C:\temp\Untitled.png C:\Temp")
ReturnValue = Shell("Copy C:\Temp\Untitled.png C:\Temp\Test1\Untitled.png")
ReturnValue = Shell("Copy C:\Users\bfuchs\Downloads\Tables_2017-Nov-05_2053.zip E:\CaspioBackups\Tables_2017-Nov-05_2053.zip")
FileCopy "C:\Temp\Untitled.png", "C:\Temp\Test1\Untitled.png"
FileCopy "C:\Temp\Untitled.png", "C:\Temp\Test1\Untitled.png"
FileCopy "C:\Temp\Untitled.png", "C:\Temp\Test1\Untitled.png"
FileCopy "C:\Users\bfuchs\Downloads\Tables_2017-Nov-05_2053.zip","E:\CaspioBackups\Tables_2017-Nov-05_2053.zip"
sBackupFolder = "E:\CaspioBackups\"
' sLastFile = NewestFile(sBackupFolder, "*.zip")
sDestinationFolder = "C:\Application\"
' If FileDateTime(sBackupFolder & sLastFile) < Date Then
sDownloadFolder = DownloadsFolder & "\"
sLastFile = NewestFile(sDownloadFolder, "*.zip")
FileCopy sDownloadFolder & sLastFile, sBackupFolder
UnZip sDownloadFolder & sLastFile, sDestinationFolder, False
sDestinationFolder = "C:\Application\"
If Dir(sDestinationFolder & NewestFile(sDestinationFolder, "*.mdb")) <> "" Then
Kill sDestinationFolder & "Tables.MDB"
Name sDestinationFolder & NewestFile(sDestinationFolder, "*.mdb") As sDestinationFolder & "Tables.mdb"
End If
If Dir(sDestinationFolder & NewestFile(sDestinationFolder, "*.mdb")) <> "" Then
Just was wondering why the FileCopy permits me to execute even when file exists?FileCopy sDownloadFolder & sLastFile, sBackupFolder & SLastFile
filecopy "C:\Users\bfuchs\Downloads\Tables_2017-Nov-15_1108.zip","E:\CaspioBackups\Tables_2017-Nov-15_1108.zip"
Copy C:\Users\bfuchs\Downloads\Tables_2017-Nov-15_1108.zip E:\CaspioBackups\Tables_2017-Nov-15_1108.zip
...