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

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. 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
ViktorKorobov
14-Alexandrite
(To:LucMeekes)

Very interesting:

filescwd.GIF

Viktor

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 III
(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

Announcements

Top Tags