[prev in list] [next in list] [prev in thread] [next in thread]
List: mumps-l
Subject: Re: Finding the name of the next file (of a certain pattern) on a
From: David Donnelly <m-dad () WORLDNET ! ATT ! NET>
Date: 1997-07-30 19:21:19
[Download RAW message or body]
Paul Gausden wrote in article <199707241404.KAA44433@atlanta.american.edu>.
..
>> From: Stefan moernaut <moernautS@spector.be>
>> To: MUMPS-L@UGA.CC.UGA.EDU
>> Subject: Finding the name of the next file (of a certain pattern) on a
>disk.
<snip>
>
>Try S X=$ZF(-1,"DIR A:\*.DOC > DIR.TXT")
>
>then open DIR.TXT (in the current namespace directory) as a sequential
file
>until you reach a line containing "bytes free"
>
>Also the format of the output of the DIR command varies between Windows
95
>and Windows NT.
>
>Paul Gausden
>QMI Limited
>London
>
If you do not need date or size info you can supply the "/b" (brief)
qualifier and you won't need to parse any non-relevant text. i.e.,
S X=$ZF(-1,"DIR A:\*.DOC /b > DIR.TXT")
David D.
m-dad@worldnett.att.net
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic