Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 145
  • Last Modified:

Storing and accessing an external list of files that need to be transfered.

I have created an app that uses mscomm to dial an isp, then it starts a secure ftp client, and transfers a zip file that is created nightly.  I have finished testing my app but i see problems arising in the future.  My app will be used in 30 different locations spread pretty far apart.

So just stopping by each store to update something is not an option.  
I am running pcanywhere in all my stores but i want this to be as automated as possible without using pcanywhere.(its for remote support only)

Thinkin of using a file that i can place in the home directory of each store (on my ftp server)  when an update is neccesary.  Have the program (running in each location) check if updated file exists(on ftp server), and if so download it and use the updated list for uploading to my server.  

The part i need assistance with is, how to access and store the list of files needed to be transfered, and what type of file will accomplish this.  The number of files to transfer could be different day to day.
Code examples are appreciated!

using vb6 in win95 through win2000 enviroments.
using the transfer engine from cuteftp pro 6.0

If there is a better or more efficient way to accomplish this let me know.


0
SeanB43
Asked:
SeanB43
1 Solution
 
GrahamSkanRetiredCommented:
I've read this several times and I'm still not sure what you need. Under such circumstances I'd normally not post, but no-one else has commented, so at least I can let you know that your question is hard to understand.

You have created an application the uses ftp to upload or download a zip file. You now need to download some other file(s) day by day.

You appear to have all that is necessary.

If  your new requirement is for more that one file, you could zip them all together. But if that is unacceptable and you need a list, there is no reason that the list couldn't be a text file.
0
 
SeanB43It DirectorAuthor Commented:
I appreciate the response.

Copied from original question

---The part i need assistance with is, how to access and store the list of files needed to be transfered, and what type of file will accomplish this.  The number of files to transfer could be different day to day.
Code examples are appreciated!-----

The text file usage is the part i dont understand.

I am a beginning programmer that has learned vb6 backwards. (just playing with code until i understood it)
The problem is there are some, probably simple, things that i dont understand how to use.
Namely using a text file for storing information that a vb6 app can use and how to make it all work.

Hope that clarifies my question.

Sorry bout the confusion.



0
 
Michael_DCommented:
Try this :

Dim fs As Object, f As Object, ts As Object
Dim s As String

Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.GetFile("C:\List.txt")
Set ts = f.OpenAsTextStream(1, -2)

Do While ts.AtEndOfStream = False
    s = ts.ReadLine
    ' Here goes your code:
    ' ex. TransferFile(s)
Loop

0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now