Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Pascal Borland > Re: Long filena...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 20 of 23 Topic 1046 of 1118
Post > Topic >>

Re: Long filename sup****t in Windows Vista

by Jim Leonard <MobyGamer@[EMAIL PROTECTED] > Aug 23, 2007 at 08:34 AM

On Aug 23, 1:40 am, Marco van de Voort <mar...@[EMAIL PROTECTED]
> wrote:
> On 2007-08-22, Jim Leonard <MobyGa...@[EMAIL PROTECTED]
> wrote:
>
> >> No with Borland Pascal (with BP, there are LFN units but these only
work
> >> under Windows 9x).
>
> > Crap.  Isn't there some interrupt I can call, some memory structure I
> > can inspect, etc.?
>
> > If not, I would want to write the utility for regular DOS for
> > prototyping and testing, then add conditional compile defines for a
> > windows compiler.  Would FreePascal be the "closest" to Borland, or
> > should I try some other compiler?  It's a recursive file copying
> > utility that I plan to write, so ideally I'd need sup****t for
> > "findfirst", "findnext", etc.
>
> Free Pascal is slightly more compatible to Borland Pascal than Delphi
(e.g.
> has a sup****ted units DOS and CRT, as well as a TV substitute).
>
> BUTt unless you really need that compability because the source is very
> large, I'd modernize it straight to the Delphi dialect, using sysutils.
Be
> it with FPC or Delphi. Note that with FPC such a transition is gradual,
TP
> dialect and Delphi-dialect code can coexist in one binary.
>
> (e.g. 16-bits integers in the TP code, and 32-bit in the Delphi code)

Here's what I'm trying to write:  A friend has asked me for a utility
that will take a size parameter (like "700MB") and copy random files
from a source directory (including recursing to subdirectories) to a
target directory.  This is so he can randomly fill things like his
music player or his digital picture frame with new content every day.

My idea was to write it in TP, since it's very quick for me to write a
small utility like this in TP, but then I thought of the following:

- Long filenames (hence the original question).  He claims he doesn't
care if the filenames are preserved, since he won't be seeing the
filenames, just the files' data... but it still irks me that the
utility won't preserve the filenames if I write it pure 16-bit DOS.

- Memory.  Using my own MP3 collection as a testbed, I have over 9700
music files.  Assuming an average directory depth+name of 64 bytes,
building a list of the available files to copy would exceed the 640K
RAM available.  So a Win32 compiler is an option simply so I have more/
virtual memory available.

Knowing this, what compiler/environment would you all recommend?  I
won't be using OOP for this (there's no point), nor anything
graphical, etc.  I'm just a 20-year turbo-pascal coder trying to write
a command-line utility that has to work in Windows XP/Vista.
 




 23 Posts in Topic:
Long filename support in Windows Vista
Jim Leonard <MobyGamer  2007-08-21 06:45:06 
Re: Long filename support in Windows Vista
Wolf Behrenhoff <NoSpa  2007-08-21 19:08:19 
Re: Long filename support in Windows Vista
Robert Riebisch <Rober  2007-08-22 09:08:30 
Re: Long filename support in Windows Vista
Jim Leonard <MobyGamer  2007-08-22 09:55:06 
Re: Long filename support in Windows Vista
Marco van de Voort <ma  2007-08-23 06:40:47 
Re: Long filename support in Windows Vista
Jim Leonard <MobyGamer  2007-08-22 09:56:30 
Re: Long filename support in Windows Vista
Robert Riebisch <Rober  2007-08-23 09:27:01 
Re: Long filename support in Windows Vista
Marco van de Voort <ma  2007-08-23 07:32:37 
Re: Long filename support in Windows Vista
Robert Riebisch <Rober  2007-08-23 10:08:08 
Re: Long filename support in Windows Vista
Marco van de Voort <ma  2007-08-23 08:27:40 
Re: Long filename support in Windows Vista
Robert Riebisch <Rober  2007-08-23 11:19:47 
Re: Long filename support in Windows Vista
Marco van de Voort <ma  2007-08-23 13:21:31 
Re: Long filename support in Windows Vista
Robert Riebisch <Rober  2007-08-23 15:41:22 
Re: Long filename support in Windows Vista
Marco van de Voort <ma  2007-08-23 18:24:35 
Re: Long filename support in Windows Vista
"Heinrich Wolf"  2007-08-22 20:26:11 
Re: Long filename support in Windows Vista
Dr J R Stockton <jrs@[  2007-08-22 18:49:28 
Re: Long filename support in Windows Vista
hartnegg <hartnegg@[EM  2007-08-23 04:36:48 
Re: Long filename support in Windows Vista
Marco van de Voort <ma  2007-08-23 12:08:51 
Re: Long filename support in Windows Vista
Jim Leonard <MobyGamer  2007-08-23 06:59:56 
Re: Long filename support in Windows Vista
Jim Leonard <MobyGamer  2007-08-23 08:34:49 
Re: Long filename support in Windows Vista
Marco van de Voort <ma  2007-08-23 19:21:32 
Re: Long filename support in Windows Vista
Dr J R Stockton <jrs@[  2007-08-23 20:15:09 
Re: Long filename support in Windows Vista
Dr J R Stockton <jrs@[  2007-08-23 20:05:19 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 18:31:36 CDT 2008.