Question:
How to generate a complete file listing, even on long directories?
pittiglj
2007-12-13 05:26:46 UTC
I'm currently using the "dir /s" command, piped to a file, on a server to generate a complete file list on 1.6TB of data. The problem is a few of the directories have such long file names (due to being nested), it doesn't catch all of them, resulting in an error that the directory is too long. The smallest of these is 256 characters long.

I was wondering if anyone knew of a way to catch ALL of the directories. Omitting the directory isn't an option, as when I parse the data (Perl script), I need to be able to reconstruct the full file path.

Any help would be greatly appreciated!

Please note, I only have access to native windows utilities - I cannot install third-party software on the server. Thanks!
Three answers:
martinthurn
2007-12-13 16:41:27 UTC
opendir DIR, 'dirname' or die;

while (my $entry = readdir DIR)

{

# process $entry, which is either a file or subdir

}

closedir DIR or warn;
anonymous
2016-11-27 00:20:56 UTC
very own domicile page is a language each and every information superhighway developer makes use of, so which you will locate it on each and every information superhighway area. Do you already know why peopledesignersdevelopers and company makes use of very own domicile page? between the main effective reason is the ability and ability to load dynamically pages, content fabric, photographs, consumer's info interior of seconds and returns it to the consumer. if truth be told, once you enter a seek request right into a seek link, you're actuallly chatting with a sq. server to retrieve the help, the help is in spite of this returned to you thru a mixture of very own domicile page content fabric in a very own domicile page or html web site. to respond to your question, each and every area makes use of very own domicile page. they could use Apache or myphpadmin on their server.
Denis B
2007-12-13 05:33:51 UTC
Try dir /s/w for wide listing.



or type dir /? and see if any of the other options may help.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...