PDA

Click to See Complete Forum and Search --> : Move remote files with Inet or Wininet


Mark Sreeves
Jan 25th, 2000, 07:41 PM
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

Mark.Sreeves@Softlab.co.uk
A BMW Group Company

Jan 25th, 2000, 09:17 PM
Use rename file1 file2

Inet1.Execute "FTP://user:password@1.1.1.1", "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: azzmodan@azzmodan.demon.nl
ICQ: 15440110 (http://www.icq.com/15440110)
Homepage: http://www.azzmodan.demon.nl





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

Mark Sreeves
Jan 25th, 2000, 09:45 PM
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

Mark.Sreeves@Softlab.co.uk
A BMW Group Company

Jan 25th, 2000, 09:54 PM
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: azzmodan@azzmodan.demon.nl
ICQ: 15440110 (http://www.icq.com/15440110)
Homepage: http://www.azzmodan.demon.nl

privoli
Jan 28th, 2000, 10:41 AM
The UNIX/Linux (ext2) filesystem does support spaces, similar to the Fat32 filesystem. It just treats them as spaces.



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

Paul Rivoli
-------------------
privoli@bigpond.com
http://users.bigpond.com/privoli

vbsquare
Jan 28th, 2000, 06:10 PM
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!"