Solved

Binary-Text with the MsInet Control

Posted on 2000-03-23
8
248 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

 
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

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

717 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