FTP Uploading in Lowercase using Inet's EXECUTE

Posted on 1998-03-02
Last Modified: 2008-03-06
When i upload a file using inet's execute command:

Inet1.execute ,"SEND c:\test.txt test.txt"

the file DOES upload fine but the filename, test.txt is all in UPPERCASE (TEST.TXT) on the remote side.  Is there a way to tell execute to upload the file in the same case format that it read it in from disk (or just send it all in lowercase)?
And is there a problem with the CD command in repeatedly comes back with a DIRECTORY NOT FOUND error.
I've tried both slash directions: "CD /testdir" and "CD \testdir" with no luck...i guess this may be a bug.
Please answer both questions if you can!
Question by:qwix
  • 4
  • 4

Expert Comment

ID: 1458317
qwix, some servers do not support case sensitive filenames.  When you examine other files on the server, are they also all in uppercase?

In regards to the CD command, try using the full path on the remote system with "/" being the root (don't include a drive letter) of the virtual directory (usually not the root on the server) and use forward slashes as the path separator.


Author Comment

ID: 1458318
Actually i found out that the reason the CD command wasnt working was BECAUSE of the case sensitivity...So if i figure out the case problem i will figure out the CD problem.
When i log on to the site i find that the site is case sensitive so if i were to "CD /test" this would be different from "CD /TEST"...the odd thing is that when i use the SEND or CD command of inet's execute it ALWAYS delivers to the remote host all in capital if i were to send a command :
inet1.execute ,"CD /home/test" it would actually send "CD /HOME/TEST".  Once the remote host sees this it CAN'T find the directory because it is all in capital letters when it should have been in lowercase.  Is there an extra parameter that i can send to make the command all in lowercase?
Thanks for your help mrmick so far...

Expert Comment

ID: 1458319
Sorry to report this...

Check out Microsoft Knowledge Base Article ID: Q168766
Title: "BUG: Internet Transfer Control Fails on Case-Sensitive Server"

I thought this was fixed with the SP3 release.  Are you running VB5 Service Pack 3?

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.


Author Comment

ID: 1458320
Actually i have service pack 1....where can i get this new version update?!?

Author Comment

ID: 1458321
Thanks for the MAJOR info mrmick...please ANSWER back so i can give you the 200 points....thanks a lot.


Accepted Solution

mrmick earned 200 total points
ID: 1458322
No problem.

Get SP3 at:

It's about 10 MB so be prepared to wait.

Expert Comment

ID: 1458323
whoops, It's 12.6 MB

Author Comment

ID: 1458324
I got SP3 and it corrects the problem...thanks
the odd thing now is that it appears sp3 has a bug in preventing "SIZE" from my old sp1 it worked perfectly but NOW with this sp3 installed it doesnt recognize it as a command at is what i send:

inet1.execute(,"SIZE test.txt")   'test.txt is the file i want to                                   'find the file size of

If you dont answer this i will completely understand...thanks for your MAJOR help.

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Validating VB6 Function 19 59
MS Access - Capture pressed key onclick 4 32
MS Access Search and Replace Using VBA 6 69
How does CurrentUser work? 10 36
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now