Solved

lower and upper case file name ftp in LAN

Posted on 2000-05-14
8
408 Views
Last Modified: 2013-11-29
i have a LAN with some win98 and some unix computers. i transfer files with ftp and and have no problem with transfering files from unix computers to win98 computers. but the other unix computers don't know UPPER CASE file name of win98 computers. i have to rename one by one those on unix computers that is hard work to me.
you have any better way to solve my problem. thank you.
0
Comment
Question by:ldlaw789
[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
8 Comments
 
LVL 40

Accepted Solution

by:
jlevie earned 100 total points
ID: 2808798
Your problem is really that windows isn't case sensitive and Unix is. When you transfer a file from windows to Unix it usually becomes uppercase because that's what windows represented the file name to be. If the file case doesn't otherwise matter, you can simply use the correct case for the name when moving the data between the Unix systems. If it does matter then you must rename the files to have lowercase names. There's an easy way to accomplish that. Create a shell script that contains:

#!/bin/sh
mv $1 `echo $1 | tr [:upper:] [:lower:]`

name the script tolower (or what ever you like) and make it executable (chmod +x tolower). You can the change the name of a single file with "tolower FILE-NAME". You can also do all the files in a directory with:

> for file in *; do tolower $file; done

in a bourne or bash shell.
0
 

Author Comment

by:ldlaw789
ID: 2809983
Thank you jlevie. The script is good for me. i will use it to rename upper name files on my unix computers.
0
 
LVL 4

Expert Comment

by:wlaarhov
ID: 2810005
If you use WS-FTP to transfer the files, you can configure how filenames are transfered.

0
Report: Liquid Web beats Amazon, Rackspace & More

A study by performance analyst firm Cloud Spectator finds that Liquid Web beats rivals Amazon, Rackspace and DigitalOcean when it comes to website and cloud application performance.

 

Author Comment

by:ldlaw789
ID: 2811023
Hi wlaarhov. i use CuteFtp but i can use WS_FTP if its configure help me. could you tell me more clearly. thank you.
ldlaw789.
0
 
LVL 8

Expert Comment

by:GEM100
ID: 2825900
I have a wonderful and extremely simple answer for you. I wrote an incredibly simple .bat file, that does all the thing. Download it at:

http://members.xoom.com/biggem100/caps.zip

Read the simplest reame file, and you get it.
What it does is converts all the filenames and/or extensions (it's 2 .bat files) to lower case. Filename is limited to 14 letters, extension - to 5, but if you edit the .bat file, you can make it longer. G-Luck
0
 

Author Comment

by:ldlaw789
ID: 2828069
i'm sorry. the .bat files're so long. i prefer jlevie's script. it runs well on my unix computers.
0
 

Author Comment

by:ldlaw789
ID: 2828074
jlevie. i like your script. thanks.
0
 
LVL 40

Expert Comment

by:jlevie
ID: 2830856
You're welcome...
0

Featured Post

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Blocking outside IP Addresses 16 126
Domain Controller/ Old server 9 68
line utilization 4 25
Internet Access how it is displayed in my status bar 7 49
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
For many of us, the  holiday season kindles the natural urge to give back to our friends, family members and communities. While it's easy for friends to notice the impact of such deeds, understanding the contributions of businesses and enterprises i…
Viewers will learn how to properly install and use Secure Shell (SSH) to work on projects or homework remotely. Download Secure Shell: Follow basic installation instructions: Open Secure Shell and use "Quick Connect" to enter credentials includi…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

739 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