|
-
September 5th, 2001, 03:52 PM
#1
cuteftp pro scripts
I am trying to automate cuteftp pro with scripts written in VB. My problem is, I need to upload all the files from a local directory into another directory on the remote side. I have used *.*, *.jpg and nothing works. If someone can help it would be very appreciated. Below is the script that i am getting the error on.
MySite.Upload "J:\Carsdata\385002\*.jpg"
If I Use MySite.Upload "J:\Carsdata\385002\ It uploads the whole folder and the files. I need to upload just the files into another directory.
Thanks!
-
September 5th, 2001, 04:31 PM
#2
Re: cuteftp pro scripts
You can use the dir command in vb to get the files one by one, uploading them one by one.
dim strFile as string
dim strPath as string
strFile = Dir(strPath & "\*.jpg")
Do until strFile = ""
MySite.Upload strPath & "\" & strFile
strFile = Dir
Loop
Tom Cannaerts
[email protected]
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook
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
|