use dotnet to retrieve filename using wildcard

davmac1davmac1 Member Posts: 1,283
edited 2015-09-08 in NAV Three Tier
am trying to find the right code to retrieve a filename that has a known component and an unknown component using dotnet in NAV2009R2 RTC.
The filename has the format 1234567_????.xml. (The directory name is always know as well.)
I have been trying a couple of dotnet types that seem to work, but I have not figured out how to return the actual file name.
mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.System.IO.Directory
and
mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.System.IO.DirectoryInfo

The second one has a property for FullName, but I get an error: System.IO.FileInfo[].FullName not found when I execute it.
Some of the examples talk about arrays, but I get a compile error if I add an array number.

(I am using dotnet, so it will still work when we upgrade.)

Answers

Sign In or Register to comment.