Results 1 to 6 of 6

Thread: Move remote files with Inet or Wininet

  1. #1

    Thread Starter
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845

    Post

    OK, how to I move remote files using inet control or wininet APIs?

    eg
    move /abc123/file.txt to /abc123/archive/file.txt

    ------------------
    Mark Sreeves
    Analyst Programmer

    [email protected]
    A BMW Group Company

  2. #2
    Guest

    Post

    Use rename file1 file2

    Inet1.Execute "FTP://user[email protected]", "rename dir/file_from dir/file_to"

    It executes 2 raw commands
    Send, RNFR file_from
    Recv, 350 ...
    Send, RNTO file_to
    Recv, 250 ...


    Now help me with my space problem

    PS. You sure UNIX doesn't support spaces? i see lot's of mp3's with spaces in the name and i beleive some of them are located on UNIX machines.

    ------------------

    Vincent van den Braken
    EMail: [email protected]
    ICQ: 15440110
    Homepage: http://www.azzmodan.demon.nl





    [This message has been edited by Azzmodan (edited 01-26-2000).]

  3. #3

    Thread Starter
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845

    Post

    Thanks Azzmodan

    I am 99.99% certain that you can't have spaces in filenames on UNIX.


    What makes you think these mp3 files are on a UNIX boxes?


    ------------------
    Mark Sreeves
    Analyst Programmer

    [email protected]
    A BMW Group Company

  4. #4
    Guest

    Post

    I ain't sure they are, but i found a lot of files with spaces, so i figured that atleast some of them should be on a UNIX box.(Guess im wrong)

    Does the unix filesystem system support spaces? if so how are they translated(?) to ftp, or doesn't it support spaces in a filename at all.



    ------------------

    Vincent van den Braken
    EMail: [email protected]
    ICQ: 15440110
    Homepage: http://www.azzmodan.demon.nl




  5. #5
    Lively Member
    Join Date
    Nov 1999
    Location
    Melbourne, Victoria, Australia
    Posts
    126

    Post

    The UNIX/Linux (ext2) filesystem does support spaces, similar to the Fat32 filesystem. It just treats them as spaces.



    ------------------
    Regards,

    Paul Rivoli
    -------------------
    [email protected]
    http://users.bigpond.com/privoli

  6. #6
    Addicted Member
    Join Date
    Jan 1999
    Posts
    173

    Post

    If you need more help with the inet control, check out http://www.vbsquare.com/internet for my series on using the control.

    ------------------
    "To the glory of God!"


Posting Permissions

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



Click Here to Expand Forum to Full Width