Solved

Binary-Text with the MsInet Control

Posted on 2000-03-23
8
242 Views
Last Modified: 2013-12-25
I have a problem with the MSINET FTP Control, with Unix and NT, the files always transfer like binary and i want to transfer like ascii.
How can do it?


      Thanks in Advanced
0
Comment
Question by:a930077
  • 4
  • 3
8 Comments
 
LVL 10

Expert Comment

by:caraf_g
ID: 2650333
You could do an FTP transfer via a batch file?

Just write a .bat file that runs your

FTP -N Blah....
User ....
..... <password here

Do your file transfer

quit

then execute it synchronously.
0
 
LVL 10

Expert Comment

by:caraf_g
ID: 2650353
PS - for synchronous shelling check out the SyncShell or FSyncShell (VB6 - VB5) functions that you can find in the Setup1.vbp program that you can find in the wizards directory of your VB installation.
0
 
LVL 14

Accepted Solution

by:
mcrider earned 200 total points
ID: 2651061
Unfortunately, the INET control does not allow you to set the ASCII/Binary type of a transfer.

See the following microsoft KB Article:
PRB: ITC Cannot Perform ASCII-type FTP Transfer
http://support.microsoft.com/support/kb/articles/Q188/9/56.ASP?LNG=ENG&SA=MSDN&FR=0 
 


Cheers!®©
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
LVL 14

Expert Comment

by:mcrider
ID: 2651065
By the way, I had nothing to do with writing the INET control... Please don't shoot the messenger...


Cheers!®©


0
 
LVL 10

Expert Comment

by:caraf_g
ID: 2652463
mcrider - don't forget I provided an alternative solution that does not depend on the use of the INET control.

<aim....> ;-)
0
 

Author Comment

by:a930077
ID: 2652608
Thanks, We will use the API.
0
 
LVL 10

Expert Comment

by:caraf_g
ID: 2652761
<...fire> Sorry to see this, mcrider, how did I just know that was going to happen... some people don't seem to get the message :-(
0
 
LVL 14

Expert Comment

by:mcrider
ID: 2654278
a930077,

Thanks for the points! Glad I could help!


caraf_g,

<As bullet wizzes past my head> I guess the point was that I was showing that you can't use the INET control this way and that microsoft has documented that fact and given an example using APIs...



Cheers!®©
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VB error "Type mismatch" 2 60
VBA Word macro - how to get characters after the searched for string 5 94
Using "ScreenUpdating" 6 73
Add and format columns in vb6 7 63
There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question