View Single Post
 
Old 12-06-2009, 02:33 PM
ajetrumpet's Avatar
ajetrumpet ajetrumpet is offline Windows Vista Office 2003
Novice
 
Join Date: Jul 2009
Location: Iowa City, IA
Posts: 11
ajetrumpet is on a distinguished road
Default Checking for DOS executions

all, I have this line of code:
PHP Code:
Shell "ftp -n -i -g -s:" vPath "\FtpComm.txt " vFTPServvbhide 
it executes a series of ftp commands in the DOS window using the txt file that is referenced. What I want is an indication of when the file has stopped executing and the DOS window is closed. That will tell me that my files are done uploading or downloading. Does anyone know if this is possible? Thanks!


the txt file uses the following code:
PHP Code:
vPath "C:"
vFTPServ Me.Combo1
vFile 
Me.List27
fNum 
FreeFile()

Open vPath "\FtpComm.txt" For Output As #fNum
Print #1, "USER " & sFtpUserName ' your login
Print #1, sFtpPassword ' your password
Print #1, "put " & """" & CurDir & vFile & """"
Print #1, "close" ' close connection
Print #1, "quit" ' Quit ftp program
Close 
Reply With Quote