Solved

FTP Uploading in Lowercase using Inet's EXECUTE

Posted on 1998-03-02
8
332 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
  • 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
 

Author Comment

by:qwix
ID: 1458320
Actually i have service pack 1....where can i get this new version update?!?
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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 200 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

929 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

11 Experts available now in Live!

Get 1:1 Help Now