Sunday, 15 August 2010

Download File with vbscript -



Download File with vbscript -

i have problem downloading file, have 2 url´s first url content user , pwd, sec url content path of file require.

if set sec url appear error message. begginer in vbscript.

only want download file

this code, dont know if correct.

function main set ie = wscript.createobject("internetexplorer.application", "ie_") ie.visible = false ie.navigate "url/sf_security_check?j_username=myuser&j_password=mypwd" '-- first url phone call extrae_arc end function function extrae_arc set ie = wscript.createobject("internetexplorer.application", "ie_") ie.visible = true ie.navigate "url" '-- sec url end function

thanks help me

the ie object redefined in extrae_arc function, hence overrides pointer assigned previously. i'd utilize next scenario:

'... set ie = wscript.createobject("internetexplorer.application", "ie_") phone call main phone call extrae_arc '... function main ie.visible = false ie.navigate "url/sf_security_check?j_username=myuser&j_password=mypwd" '-- first url end function function extrae_arc ie.visible = true ie.navigate "url" '-- sec url end function

vbscript

No comments:

Post a Comment