Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

FtpPutFile

Posted on 2006-07-18
2
Medium Priority
?
1,929 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
2 Comments
 

Assisted Solution

by:priya_rifluxyss
priya_rifluxyss earned 1200 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 800 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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 utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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

926 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