cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

Undocumented function "Files(,)"

LucMeekes
23-Emerald III

Undocumented function "Files(,)"

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

4 REPLIES 4

Very interesting:

filescwd.GIF

Viktor
MikeArmstrong
5-Regular Member
(To:LucMeekes)

Nice find Luc.

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

Mike

LucMeekes
23-Emerald III
(To:LucMeekes)

Refer to:

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

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

Luc

StuartBruff
23-Emerald II
(To:LucMeekes)

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

Top Tags