Jump to content

InetGet doesn't work using variable like this InetGet($S_FULL_URL , 'F:\hien\results\' & $S_BETWEEN1)


Recommended Posts

Hi guys,

Goal:

I need to parse a file and grab some URL information and concatenate them to get a the complete URL

The following script is just a small part of a bigger script.

this line works:

$S_FULL_URL = "http://www.merriam-webster.com/help"

this doesn't but i need to use this format for my main script:

$S_FULL_URL = '"' & $S_URL_MAIN & $S_BETWEEN1 & '"'

Thanks a lot ahead of time

full script:

$S_BETWEEN1 = "help"

$S_URL_MAIN = "http://www.merriam-webster.com/"

$S_FULL_URL = "http://www.merriam-webster.com/help"

;$S_FULL_URL = '"' & $S_URL_MAIN & $S_BETWEEN1 & '"'

MsgBox(0,"s_full", $S_FULL_URL)

msgBox(0,"s_bet", $S_BETWEEN1)

InetGet($S_FULL_URL , 'F:\hien\results\' & $S_BETWEEN1)

Edited by techshots
Link to comment
Share on other sites

I think it was your speach marks in $S_FULL_URL

$S_BETWEEN1 = "help"

$S_URL_MAIN = "http://www.merriam-webster.com/"

;$S_FULL_URL = "http://www.merriam-webster.com/help"
$S_FULL_URL =  $S_URL_MAIN & $S_BETWEEN1 

MsgBox(0,"s_full", $S_FULL_URL)
msgBox(0,"s_bet", $S_BETWEEN1)

InetGet($S_FULL_URL , 'F:\hien\results\' & $S_BETWEEN1)
Link to comment
Share on other sites

Thanks a bunch.

that worked. learned a lot on this one.

I think it was your speach marks in $S_FULL_URL

$S_BETWEEN1 = "help"

$S_URL_MAIN = "http://www.merriam-webster.com/"

;$S_FULL_URL = "http://www.merriam-webster.com/help"
$S_FULL_URL =  $S_URL_MAIN & $S_BETWEEN1 

MsgBox(0,"s_full", $S_FULL_URL)
msgBox(0,"s_bet", $S_BETWEEN1)

InetGet($S_FULL_URL , 'F:\hien\results\' & $S_BETWEEN1)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...