How can I get a fixed length record in Windows

Jeff Hoffman wonicon@optushome.com.au
Thu, 09 Oct 2003 19:04:53 +1000


Ole

Thanks a million, works like a bought one (no insult intended, considering
the quality of some of the s/w you buy these days).


Jeff

At 07:35 PM 08-10-03 +0200, you wrote:
>Hi Jeff,
>
>In similar circumstances we use a utility TOFIX, that I wrote years back in
>Turbo Pascal, now re-compiled under Windows XP.
>
>>From its help :
>
>Converts a variable-length file to a fixed-length file
>ScanConsult IT-Partners            www.scanconsult.dk
>Usage : tofix <record-length> <infile> <outfile>
>
>I have attached it as a zip-file due to possible restrictions on exe-files
>in your mail system.
>
>HTH
>
>Mange hilsner / With kind regards
> 
>Ole Hansen
> 
>===========================================================
>E-mail: oh@scanconsult.dk         Cell Phone: +45 4040 1150
>===========================================================
>ScanConsult IT-Partners ApS         Voice   : +45 8738 7474
>Jegstrupvej 96A                     Fax     : +45 8738 7475
>DK-8361 Hasselager         Support : support@scanconsult.dk
>Denmark                    Sales   :   sales@scanconsult.dk
>                 http://www.scanconsult.dk                
>= ParaSuite :  A Suite of Air Cargo Handling solutions    =
>= ParaSafe  :  A Suite of IT-Security solutions           =
>= Partners  : Hewlett-Packard, Cognos, Microsoft and more =
>
>
>
>-----Original Message-----
>From: powerh-l-admin@cube.swau.edu [mailto:powerh-l-admin@cube.swau.edu] On
>Behalf Of Jeff Hoffman
>Sent: 8. oktober 2003 17:59
>To: powerh-l@lists.swau.edu
>Subject: How can I get a fixed length record in Windows
>
>
>Hi
>
>I need to do a dir command to a file, then read this file in PH. The record
>has been defined as 80 char, however the dir command gives a variable length
>record. Does anyone have a Windows solution.
>
>Ph841c on Windows 2000
>
>Thanks
>
>Jeff
>+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
>+
>+ Jeff Hoffman                          + e-mail: wonicon@optushome.com.au
>+
>+ Director                              +
>+
>+ WoniCon Pty Ltd   (ABN 93 083 502 630)+                          ,-_|\
>+
>+ 21 Prices Circuit                     + voice: +61 2 9542 1527  /     \
>+
>+ Woronora    NSW     2232              +                         \_,-._*
>+
>+ AUSTRALIA                             + mobile: 040 790 3929         v
>+
>+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
>+
>= = = = = = = = = = = = = = = = = = = = = = = = = = = =
>Mailing list: powerh-l@lists.swau.edu
>Subscribe: "subscribe" in message body to powerh-l-request@lists.swau.edu
>Unsubscribe: "unsubscribe <password>" in message body to
>powerh-l-request@lists.swau.edu
>http://lists.swau.edu/mailman/listinfo/powerh-l
>This list is closed, thus to post to the list you must be a subscriber.
>
>Attachment Converted: "f:\eudora_wonicon_opt\attach\TOFIX.zip"
>
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+ Jeff Hoffman                          + e-mail: wonicon@optushome.com.au  +
+ Director                              +                                   +
+ WoniCon Pty Ltd   (ABN 93 083 502 630)+                          ,-_|\    +
+ 21 Prices Circuit                     + voice: +61 2 9542 1527  /     \   +
+ Woronora    NSW     2232              +                         \_,-._*   +
+ AUSTRALIA                             + mobile: 040 790 3929         v    +
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
+