473,395 Members | 2,192 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

ftp process using createprocess

I am using CreateProcess(..) function for ftp process.It is working fine.But I want to know whether the file is transferred successfully or not. Presently CreateProcess(..) returning true eventhough network is breakdown in the middle. I will be greateful if any body suggest good idea to solve this problem.

thanks,
P.Uday.
May 31 '07 #1
2 2269
AdrianH
1,251 Expert 1GB
I am using CreateProcess(..) function for ftp process.It is working fine.But I want to know whether the file is transferred successfully or not. Presently CreateProcess(..) returning true eventhough network is breakdown in the middle. I will be greateful if any body suggest good idea to solve this problem.

thanks,
P.Uday.
You have not stated if you are using Windows, though I think that CreateProcess() is a Windows command.


So you are executing the native FTP client on Windows? And it doesn't return an errorcode? Big suprise. Try another FTP client.


Adrian
May 31 '07 #2
Banfa
9,065 Expert Mod 8TB
I am using CreateProcess(..) function for ftp process.It is working fine.But I want to know whether the file is transferred successfully or not. Presently CreateProcess(..) returning true eventhough network is breakdown in the middle. I will be greateful if any body suggest good idea to solve this problem.
That is because the return value of CreateProcess indicates if the process was created, not what the return value of the process was. It can't give the return value of the process because CreateProcess returns before the created process finishes executing.

To get the return value of a process you have to wait for it to finish and then call GetExitCodeProcess using the process handle.

However I do not think this will help you because I believe ftp always returns 0.
May 31 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: J Bunton | last post by:
ShellStr = "C:\temp\wzzip " & ZipOptions & " " & ZipTo & " " & ZipFrom ShellRet=Shell(ShellStr) .. . . . . . msgbox "Done" How can I determin whether the Shelled process is still running.
7
by: Devron Blatchford | last post by:
Hi there, I am trying to develop a small menu application to run on an RF network, we are using a wavelink server to communicate with our rf scanners and run VB.NET applications on our server...
9
by: Andrew Robert | last post by:
Hi everyone, I have a python program that will need to interact with an MQSeries trigger monitor. It does this fine but it hogs the trigger monitor while it executes. I'd like to fork the...
12
by: Noam | last post by:
I had originally written a program as a c# console application. The program used a reference that I wrote in c++. Later I was told to re-write the application as a windows service. When the service...
1
by: Joey | last post by:
I am using the below code to run a dos based program. While it is running you can hit ctrl-c to cancel the process. Does anyone know how I can send the same keystroke to the already runing...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.