Solved

Binary-Text with the MsInet Control

Posted on 2000-03-23
8
235 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
 
LVL 14

Expert Comment

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


Cheers!®©


0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 10

Expert Comment

by:caraf_g
Comment Utility
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
Comment Utility
Thanks, We will use the API.
0
 
LVL 10

Expert Comment

by:caraf_g
Comment Utility
<...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
Comment Utility
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

762 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now