Skip to main content
23-Emerald IV
November 16, 2010
Question

Undocumented function "Files(,)"

  • November 16, 2010
  • 3 replies
  • 3842 views

Hi,

Just found by accident that in Mathcad 11 the function Files(CWD) returns a vector of strings, where each strings holds a filename that exists on the current path (due to CWD), you can supply any valid path to the function. Note that the function name is spelled with a capital F: "Files" is defined , "files" is undefined.

The function accepts a second argument, which must be a string apparently, and has something to do with file type. Has anyone figured out how to use that second argument?

Luc

3 replies

1-Visitor
November 16, 2010

Very interesting:

filescwd.GIF

1-Visitor
November 16, 2010

Nice find Luc.

I can confirm that it doesn't work in Mathcad 15 though.

Mike

LucMeekes23-Emerald IVAuthor
23-Emerald IV
May 4, 2012

Refer to:

http://communities.ptc.com/message/165884#165884

reply # 214. for a more elaborate description of the Files() unction.

Luc

23-Emerald V
May 6, 2012

LucMeekes wrote:

Refer to:

http://communities.ptc.com/message/165884#165884

reply # 214. for a more elaborate description of the Files() unction.

Luc

Here's a starter for 10 for M12+ ...

Stuart