Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

FTP Uploading in Lowercase using Inet's EXECUTE

Posted on 1998-03-02
8
Medium Priority
?
370 Views
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 EXECUTE...it 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!
0
Comment
Question by:qwix
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
8 Comments
 
LVL 8

Expert Comment

by:mrmick
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.

0
 

Author Comment

by:qwix
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 letters...so 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...
0
 
LVL 8

Expert Comment

by:mrmick
ID: 1458319
Sorry to report this...

Check out Microsoft Knowledge Base Article ID: Q168766
Title: "BUG: Internet Transfer Control Fails on Case-Sensitive Server"
http://premium.microsoft.com/support/kb/articles/q168/7/66.asp

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

0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

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

Author Comment

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

0
 
LVL 8

Accepted Solution

by:
mrmick earned 800 total points
ID: 1458322
No problem.

Get SP3 at:

http://www.microsoft.com/vbasic/download/sp/

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

Expert Comment

by:mrmick
ID: 1458323
whoops, It's 12.6 MB
0
 

Author Comment

by:qwix
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 working...in my old sp1 it worked perfectly but NOW with this sp3 installed it doesnt recognize it as a command at all....here 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.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses

604 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