Solved

FtpPutFile

Posted on 2006-07-18
2
1,918 Views
Last Modified: 2012-06-27
FtpPutFile(hConnection, x, y, FTP_TRANSFER_TYPE_BINARY, 0)

I dont understand what "x" is supose to represent.  I have read up on it and still can not grasp it.  A killed string that refers to the document to be uploaded?

does someone have an example?  how should i save "x" and declare x?

Thanks  
0
Comment
Question by:aboskoco
[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
2 Comments
 

Assisted Solution

by:priya_rifluxyss
priya_rifluxyss earned 300 total points
ID: 17136274

try this code
dim szFileLocal as string
dim szFileRemote as string
dim dwtype as long
dim bret as boolean
 bRet = FtpPutFile(hConnection, szFileLocal, szFileRemote, dwType, 0)

set the path of local file to "szFileLocal"
set the path of remote file to "szFileRemote"

example
szFileLocal="C:\xx.txt"
szFileRemote="/www/xxx/xx.txt"

This will work
0
 
LVL 29

Accepted Solution

by:
nffvrxqgrcfqvvc earned 200 total points
ID: 17136838
lpszLocalFile
[in] Pointer to a null-terminated string that contains the name of the file to be sent from the local system.

This parameter is were you specify the complete location of the file your going to upload to your FTP server, as shown in the example above by priya_rifluxyss.
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

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…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
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…
Suggested Courses
Course of the Month3 days, 17 hours left to enroll

630 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