Quantcast
Channel: VBForums - ASP, VB Script
Viewing all articles
Browse latest Browse all 688

VBscript put path on "field" file

$
0
0
Hi, im try to upload my profile pictures in facebook by put the url on a "field file" without click "Choose" with this code, but, is not working:

Set IE = CreateObject("InternetExplorer.Application")
set WshShell = WScript.CreateObject("WScript.Shell")
IE.Navigate "https://m.facebook.com/photos/upload?profile_pic"
IE.Visible = True
Wscript.Sleep 2000
IE.Document.All.Item("file1").Value = "C:/10001.jpg"


The script can't populate that field. Why? any solution?

Viewing all articles
Browse latest Browse all 688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>