|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
--------------------------------------------------------------------------------
Here is what I am trying to achieve, I have small program in VB which is called File Search. The object of this program is to look for a file and if its there delete it and than do some other work. The problem is that the file lies on an FTP site which makes it harder because I have to figure out a way to work with batch file, that will login to the FTP site delete the file and than logout. Below is the code that I am trying to write, some of the it is in psedocode, can anyone help me with this. Code:
While x <> ""
x = UCase(x)
fFormat = ""
If InStr(x, "ARC0479.SCTOPN'") <> 0 Then
If InStr(x, "ARC0486. SOARCNTL'") Then
delete(controlfile)
fFormat = "ARCS001"
outFileName = TargetDir & "ARC_DISP.txt"
End If
|
|
#2
|
||||
|
||||
|
are you asking for the VB code to connect with FTP server? or does this part already works?
|
|
#3
|
||||
|
||||
|
Quote:
I am asking for the VB code to connect to the FTP server. Also need to know how can I delete the file? Please let me know Thanks |
|
#4
|
||||
|
||||
|
so you shouldn't have posted this in the ASP forum. this thread has been now moved
to the VB forum and the duplicate thread removed. please do not cross post again in the future - if you have VB problem, post in the VB forum only. as for the problem itself, I'm not familiar enough with VB, sorry. |
|
#5
|
|||
|
|||
|
If you're using VB6 you can use this control for FTP
http://msdn.microsoft.com/library/e...rnetControl.asp
__________________
====== Doug G ====== I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain |
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > Working with Batch Files |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|