wildcard with exists?

Nancy Palmquist nlp at vss3.com
Tue Mar 22 10:33:11 PDT 2011


Scott,

You would have to use the @dirlist[] or one of the variations to get all 
the names of the files in a folder.  This will accept a mask to wildcard 
the selection.  Then you can use that array to see if any match your 
wildcard.  I use these for file management stuff.

Nancy

On 3/21/2011 5:22 PM, Scott Nelson wrote:
> I am looking for a way to test if a file exists, where that file will
> always begin with a fixed first few characters, and the rest of the name
> be varied.  I have tried e=exists("/pathname/file*.txt") and it does not
> see the file.
>
> Is there a way with the exists command or is there a better way?
>
> Scott
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> Subscribe/Unsubscribe/Subscription Changes
> http://mailman.celestial.com/mailman/listinfo/filepro-list
>

-- 
Nancy Palmquist         MOS&  filePro Training Available
Virtual Software Systems    Web Based Training and Consulting
PHONE: (412) 835-9417           Web site:  http://www.vss3.com



More information about the Filepro-list mailing list