I have made a function that swaps 2 files around on an ftp server, of course it slows the prog down and i need to run the function in a seperate thread.
i call the function like this:
SwapFiles("ftp.mysite.com", "user1", "pass", 21, "htdocs/ss", "sstatus.asp", "sonline.asp");
Inside swapfiles a connection is made to the server and then the files are swapped. How can i do all of this in a seperate thread?