Long character names for files or folders

windows file system

    Next

  • 1. How can I trace past program activity?
    I've been trying to track down why I occasionally lose files in a directory on one of my disks. The problem is that it's not obvious when it happens. I usually find out hours or days later when I look. However, it happened again and with the help of a file recovery program I saw that it happened at 9:47 this morning. I looked at the Event Logs in Windows but I can't seem to figure out how to find the info I think I need. I want to try and find out exactly what executables were running around that time. Is there a way to do this? Running Windows 7 x64 Ultimate.
  • 2. Windows 2003 / 2008 dfs
    Hi, Please can someone let me know if DFS between servers is always instant. Regards Webshitai
  • 3. MBR copy
    How many copies of MBR stored in disk. Sector 0 in disk keeps MBR copy. Where are other copies of MBR and how to reach them.
  • 4. NTFS MFT structure question
    Dear all, I'm trying to find out the exact layout of an MFT record. I understand the record structure: | Standard information | Name | Data | Empty | However, I would like to know what every single byte in the record does..... Any would be much appreciated??

Long character names for files or folders

Postby RGVhbiBCdWVu » Wed, 29 Apr 2009 03:30:01 GMT

hello everyone,

I have a databackup script that runs every night which basically copies a 
certain folder to a removable 500GB hard drive.  The copied folder has 
roughly 30,000 files in it, however in that whole mess of subfolders, there 
are files that are longer than 40 characters long.  I've just found out that 
the databackup script stops on these files and doesnt continue with the rest 
of the databackup; effectively making it useless.  

Question is, is there a way how I can run a script/program that will search 
for these files that are longer than 40 characters long and have it 
automatically rename it to something shorter?  

You help is much appreciated,
Dean

Re: Long character names for files or folders

Postby Pegasus [MVP] » Wed, 29 Apr 2009 04:36:07 GMT






Most Windows programs and tools have a limit of around 260 characters for 
the combined path+file length. If your unnamed backup program baulks at 
anything longer than 40 characters then it's the fault of the backup 
program, not of Windows. Time to look for a different backup tool! 



Re: Long character names for files or folders

Postby RGVhbiBCdWVu » Wed, 29 Apr 2009 06:55:01 GMT









Re: Long character names for files or folders

Postby Pegasus [MVP] » Wed, 29 Apr 2009 07:16:20 GMT










============

There is nothing wrong with a carefully written batch file for backing up 
files. I do it all the time. Let's have a look at the batch file, and 
include the error message you see when it fails - verbatim, please! I'm 
beginning to suspect that it has nothing to do with the length of the file 
name. 



Similar Threads:

1.problem saving pdf file with name longer than 132 characters

\\soepdc\files$\Drilling\Telecoms\Telecoms Team\Communication Systems - 
General Info\Radio Equipment and Services\Wireless products\linksys.pdf



this is the max allowed access denied error message appear after that



ie 6

windows xp sp2

and the share on windows 2000 advanced server


2.Defining legal character set for folder/file names

Is there any way to redefine legal character-set for naming folder or
file names? In our enterprise, many of our Windows machines are used
in Unix environment. It will be desirable to define a global
charater-set that excludes characters like Space, Tab, $ etc.

Thanks,
Vinod

3.WRONG 8.3 file names showing instead of long file name

I am having a strange problem with the wrong 8.3 file name appearing in a
shortcut that is supposed to have a long file name.  I have a folder on a
network drive called X:\Reports that hold whole list of reports with long
names (and 8.3 names) like:

Bookings by Customer.rpt (BOOKIN~1.rpt)
Bookings by Country.rpt  (BOOKIN~2.rpt)
Bookings by Month.rpt  (BOOKIN~3.rpt)
Bookings by Part Number.rpt  (BOOKIN~4.rpt)
Purchase Orders by Customer.rpt (PURCHA~1.rpt)
Purchase Orders by Country.rpt (PURCHA~2.rpt)
Purchase Orders by Month.rpt (PURCHA~3.rpt)
Purchase Orders by Part Number.rpt (PURCHA~4.rpt)

To organize this folder with over 100 reports I created folders (X:\Sales,
X:\Purchasing,X:\Production, etc) with shortcuts to the reports where when I
look at the target on each of the shortcuts it clearly shows
X:\Reports\thelongfilename.  I have a couple of computers where for some
reason they see the target as a short 8.3 file name which is OK, but the
problem is that it is the WRONG 8.3 file name.

If the folder with the shortcuts was on the local computer I could see how
something might have been confused, but every other computer that looks at
the exact same shortcuts sees a long file name, but these two computer see
short file names, but only on a few of the reports in the folders.

The server is a WinNT 4.0 SP6a server and all the clients are Win 2000.


4.invalid file name or file name too long

5.Long file names suddenly converted to short file names

I am running Windows XP SP2 and am connecting to a Windows 2003 Server.
This morning I opened up a folder on the server and noticed hat all the 
files in it had been renamed to have short file names.
All other users on the network are experiencing the same problem.
This has only happened to two folders.

Does anyone have any idea what is going on? Is there any way to conver the 
file names back?

Thanks
Saita 




Return to windows file system

 

Who is online

Users browsing this forum: No registered users and 61 guest