Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21090

Use variables in GET command using INET1

$
0
0
Hi all,

I'm having a problem with this and I'm sure I'm making a small mistake (probably not enough coffee!) but I can't get this to work...

Code:

Inet1.Execute , "GET " & Name_of_File(C) & " c:\content\" & Name_of_File(C)
It will not 'get' the file, if I take out the variable Name_Of_File(C) and put in the direct name of the file it works fine...

It is obviously something with the commas but I just can't figure it out.

I know the variable Name_Of_File(C) is valid as I msgbox it just before the command and it comes back as what it should be

There are no errors, it just does not complete the execute and d/l the file so it must be in this line.

Thanks in advance.

Viewing all articles
Browse latest Browse all 21090

Trending Articles



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