RobbieC
Active Member
- Joined
- Dec 14, 2016
- Messages
- 376
- Office Version
- 2010
- Platform
- Windows
Hi there, I trying to write a script to compare filesizes of local and remote (on a web server) files...
I can get the local filesize by using:
I can check if my 'remote' file exists by using:
which returns a true or false. But for the life of me I can't return the filesize of the file on the remote server....
If you can point me in the right direction, I'd be extremely happy
Thanks
I can get the local filesize by using:
Code:
Dim localFileSize As Long
localFileSize = FileLen(ThisWorkbook.Path & Filename)
MsgBox "local - " & localFileSize
I can check if my 'remote' file exists by using:
Code:
Dim doesFileExist As Boolean
doesFileExist = checkFile("http://www.mywebserver.com/files/" & Filename)
MsgBox "Remote file exists - " & doesFileExist
which returns a true or false. But for the life of me I can't return the filesize of the file on the remote server....
If you can point me in the right direction, I'd be extremely happy
Thanks