Solved

FTP Uploading in Lowercase using Inet's EXECUTE

Posted on 1998-03-02
8
329 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
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

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…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

707 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

13 Experts available now in Live!

Get 1:1 Help Now