Hi there,

I have been searching the web for weeks now, on info to help me make my little hobby project work.

On my local computer, I have a file that I want to upload to a web server. Lets just call it c:\information.txt

Instead of having to open a web browser, browse to my site, click a Browse button on a <input type=file> field, then selecting the file and clicking Submit, I would like to have a .vbs file that I can just double-click, after which it posts the file, using HTTP POST, to my web server.

So in short: How to make a .vbs script that can replace the following form:

<form action=url-to-web-server.asp method=post enctype=multipart/form-data>
<input type=hidden name=id value=thomashess>
<input type=file name=thefile>
<input type=submit value=send>
</form>


I know I might be able to do it using some 3rd party component, but the trick is to be able to do it from any Windows PC. I want other to be able to send the same file from their computer to my web server too, just with another value in the ID file. But I guess it should be able to do with just the WinSock component.

The script should be in the VB Script language.

Hope this makes sense, otherwise ask me for further info. Any help with pointers to the right direction is greatly appreciated..!!

Sincerely,
Thomas Hess

Copenhagen, Denmark