Results 1 to 2 of 2

Thread: faizalh@knowledgefactory.co.za

  1. #1
    faizal Guest

    Default faizalh@knowledgefactory.co.za

    Can I use this code to move a file via ASP to an FTP site?<BR>sub pict_transfer (MyPict)<BR> Pict1 = Request.Form("file1")<BR> dim pict1m<BR> pict1m = CreateObject("Scripting.FileSystemObject")<BR> if filesys.FileExists(pict1) then<BR> filesys.MoveFile "" & pict1 & "", "ftp://person:password$@mysite/mydirectory" + Mypicture + ".jpg"<BR> end if<BR>end sub<BR><BR>Many thanks<BR><BR>Faizal

  2. #2
    Join Date
    Dec 1969

    Default No. FSO does not support that...

    ...You&#039;ll have to write your own little WSH script to access the native ftp.exe unless you opt to build/purchase your own component.<BR><BR>Look in Windows help for FTP and you&#039;ll see some examples of how to write commands out to an ASCII file then redirect then back to FTP.exe<BR><BR>sorry, I don&#039;t have a ready made code sample for you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts