|
-
Mar 9th, 2001, 03:24 PM
#1
Thread Starter
Junior Member
I have a program that someone else wrote that allows the user to select a file with a windows common dialog, and then FTP that file to a specific server.
I have been asked to change it so that it deletes the FTP'd file after the transfer is complete.
The problem is this-
The way that they were doing the FTP was by having WS_FTP installed on the PC and doing something like:
strCommand = "ws_ftp.exe c:\mydir\myfile remoteaddress\remotedir\remotefile"
shell(strCommand)
Since a shell happens asynchronously, it returns to the running code before the transfer is complete, so if I delete the file then, it is not transfered, ws_ftp locks up, and all manor of unsavory things happen.
Since shell returns the process ID of the process that it starts, how can I use that to determine when the transfer finishes, so I can then delete the file?
-
Mar 9th, 2001, 08:36 PM
#2
Lively Member
All what you dream is codable - DevMaX
-
Mar 12th, 2001, 10:26 AM
#3
Thread Starter
Junior Member
THANKS!
Thank you very much. That seems to do the trick.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|