File size 0 bytes when using Inet control - why?

M

Mika

Hi all,

This uses msinet.ocx and I have installed it successfully.

PolkuTiedosto = "D:\Projects\My project\test.html"
Polku = "/public_html/"
Tiedosto = "test.html"

UserForm1.Password = "ok"

FileNum = FreeFile

Open PolkuTiedosto For Output As #FileNum
Print #FileNum, "text"
Close #FileNum

UserForm1.Inet1.Execute , "PUT " & Chr$(34) & PolkuTiedosto & Chr$(34) & " "
& Chr$(34) & Polku & Tiedosto & Chr$(34)

The file is saved correctly on my computer but the PUT command writes an
empty file. Why is the file size 0 bytes? With another PC everything works
just fine.

By the way, firewall allows Word to connect to the Internet.

Mika
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top