hozo
Mar 25th, 2000, 03:59 AM
Wazzz-sup fellow progy's. Here's a good one for yah.
Wrote a program that needs to push JPG's up to an ftp server, whichever one they pick in a commondialog open file window.
Basically they pick the file, then I kick in the inet.execute like this.....
INET.execute , "PUT " & filename & " /"& username & ".jpg"
(username is just a global in the program and filename is a text box) ..
It works .. EXCEPT if they browse to directory that contain spaces. IE MY PROGRAMS.. because what happens is the follow command gets sent to the ftpserver
"PUT C:\MY PROGRAMS\ME.JPG /ME.JPG"
Well this confuses the ftp server and it trys to send C:\MY and put it on the server as PROGRAMS\ME.JPG .. You get the drift. Are there any function /procedures that anyone knows of that will turn a 32bit long name into the 16bit short name (8.3 format) ? If not.. any other ideas on how to upload to an ftp server? Thanks guys.
Wrote a program that needs to push JPG's up to an ftp server, whichever one they pick in a commondialog open file window.
Basically they pick the file, then I kick in the inet.execute like this.....
INET.execute , "PUT " & filename & " /"& username & ".jpg"
(username is just a global in the program and filename is a text box) ..
It works .. EXCEPT if they browse to directory that contain spaces. IE MY PROGRAMS.. because what happens is the follow command gets sent to the ftpserver
"PUT C:\MY PROGRAMS\ME.JPG /ME.JPG"
Well this confuses the ftp server and it trys to send C:\MY and put it on the server as PROGRAMS\ME.JPG .. You get the drift. Are there any function /procedures that anyone knows of that will turn a 32bit long name into the 16bit short name (8.3 format) ? If not.. any other ideas on how to upload to an ftp server? Thanks guys.