corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » Long File Lister


New Topic

New Poll
  Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author Long File Lister
Andrew
Member

Registered: 5th May 04
Location: Skoda Octavia Estate, Ford Puma
User status: Offline
15th Jul 11 at 10:50   View User's Profile U2U Member Reply With Quote

I have an image of an old server which contains a company's data. I need to pull that data out. However, users have created folders withing folders and used the 255 character threashold. I therefore cannot pull out all the data with a simple copy and paste.

Does anyone know a Long File lister that will work with Server 2008 or a way of Windows ignoring the fact we have gone over the 255 characters.
Brett
Premium Member

Avatar

Registered: 16th Dec 02
Location: Manchester
User status: Offline
15th Jul 11 at 11:42   View Garage View User's Profile U2U Member Reply With Quote

Can you not just use something like SyncToy to mirror it accross?
Dom
Member

Registered: 13th Sep 03
User status: Offline
15th Jul 11 at 12:32   View User's Profile U2U Member Reply With Quote

Can you not rename the files? Could easily put together a batch script to truncate the filenames if they are over the 255 character limit.
Sam
Moderator
Premium Member


Registered: 24th Dec 99
Location: West Midlands
User status: Offline
15th Jul 11 at 12:35   View User's Profile U2U Member Reply With Quote

Dom wouldn't it do that anyway (truncate I mean)? I know in the old days of DOS etc. it would do that if it was longer than 8 characters.
Dom
Member

Registered: 13th Sep 03
User status: Offline
15th Jul 11 at 12:48   View User's Profile U2U Member Reply With Quote

quote:
Originally posted by Sam
Dom wouldn't it do that anyway (truncate I mean)? I know in the old days of DOS etc. it would do that if it was longer than 8 characters.


Don't think so; in command it'll truncate but only for representation (from what i gather). To be hoenst i'm not quite sure about the whole filename length situ - i know it's 255 characters under NTFS, but can't remember if that the whole path (have a feeling the whole path has to <= 32k characters) or just a limit for (sub)directories/filenames.

Either way, if there isn't any issue renaming the files then i would; easiest option and all

[Edited on 15-07-2011 by Dom]
Planty02
Member

Registered: 5th Mar 05
Location: Burslem, Stoke-on-Trent
User status: Offline
15th Jul 11 at 12:56   View User's Profile U2U Member Reply With Quote

May not suit your situation but in the past i've got round this by mapping a network drive to a folder in the chain, replacing the first 20-30 chars with a single drive letter.

bet of a longer process but has worked for me in the past

otherwise there is bound to be a tool for the job on the hirens boot disc (google it)
adiohead
Member

Registered: 28th Sep 01
User status: Offline
15th Jul 11 at 13:12   View User's Profile U2U Member Reply With Quote

quote:
Originally posted by Planty02
May not suit your situation but in the past i've got round this by mapping a network drive to a folder in the chain, replacing the first 20-30 chars with a single drive letter.



yes! simple but clever.
Andrew
Member

Registered: 5th May 04
Location: Skoda Octavia Estate, Ford Puma
User status: Offline
15th Jul 11 at 13:53   View User's Profile U2U Member Reply With Quote

64GB of data and 40,000 folders - i'm fucked here

Only thing i can think blasting the image of the old server drive accross
Dom
Member

Registered: 13th Sep 03
User status: Offline
15th Jul 11 at 14:09   View User's Profile U2U Member Reply With Quote

What's wrong with batch filename truncating?

Edit - Get the batch to throw out a log file that way you can always rename stuff back again if the shit hits the fan, so to speak.

[Edited on 15-07-2011 by Dom]
Steve
Premium Member

Avatar

Registered: 30th Mar 02
Location: Worcestershire Drives: Defender
User status: Offline
15th Jul 11 at 15:14   View Garage View User's Profile U2U Member Reply With Quote

think if you do it via command prompt its ok

use xcopy
pow
Premium Member

Avatar

Registered: 11th Sep 06
Location: Hazlemere, Buckinghamshire
User status: Offline
15th Jul 11 at 21:49   View Garage View User's Profile U2U Member Reply With Quote

Why do you need to trunkcate filenames? Robocopy doesn't insist on 255 chars max?
John
Member

Registered: 30th Jun 03
User status: Offline
15th Jul 11 at 21:56   View User's Profile U2U Member Reply With Quote

I normally just copy to a folder higher up the tree until one let's me do it.
pow
Premium Member

Avatar

Registered: 11th Sep 06
Location: Hazlemere, Buckinghamshire
User status: Offline
15th Jul 11 at 22:13   View Garage View User's Profile U2U Member Reply With Quote

Am I being really stupid or have I just never come across this problem before?
John
Member

Registered: 30th Jun 03
User status: Offline
16th Jul 11 at 00:32   View User's Profile U2U Member Reply With Quote

It's normally clients that put absolutely everything in the folder and filenames. When you try to restore to your desktop for example its too long.
Planty02
Member

Registered: 5th Mar 05
Location: Burslem, Stoke-on-Trent
User status: Offline
18th Jul 11 at 12:43   View User's Profile U2U Member Reply With Quote

How are you doing on this andrew?
Andrew
Member

Registered: 5th May 04
Location: Skoda Octavia Estate, Ford Puma
User status: Offline
19th Jul 11 at 14:31   View User's Profile U2U Member Reply With Quote

quote:
Originally posted by pow
Am I being really stupid or have I just never come across this problem before?


No mate, Windows is stupid for allowing users to be so stupid

[Edited on 19-07-2011 by Andrew]
Andrew
Member

Registered: 5th May 04
Location: Skoda Octavia Estate, Ford Puma
User status: Offline
19th Jul 11 at 14:38   View User's Profile U2U Member Reply With Quote

quote:
Originally posted by Planty02
How are you doing on this andrew?


Took server offline on Saturday and created a new partition from VMware/Windows. I've pulled the data off the old server using snapshot and blasted all the data back on removing all redundant data no longer needed. This has worked ok and the users are happy. I now need to go through the data manually when i get chance renaming the silly file names and removing emtey folders.


 
New Topic

New Poll

  Related Threads Author Forum Replies Views Last Post
Who is the goit of CS vibrio General Chat 12 388
19th May 03 at 22:51
by vibrio
 
file compression Marc D Geek Day 7 1197
15th Sep 03 at 20:02
by Marc D
 
a file with *.DAT on the end........ liamC Geek Day 6 1181
25th Oct 05 at 13:20
by Cybermonkey
 
2gb of ram over 1gb Jas Geek Day 22 403
9th May 07 at 09:58
by Jas
 
Torrents - newsgroups Dan Lewis Geek Day 22 1221
23rd Dec 07 at 22:47
by MarkM
 

Corsa Sport » Message Board » Off Day » Geek Day » Long File Lister 29 database queries in 0.0204511 seconds