Skip to main content
January 15, 2011
Question

Get list of subfolder name in a folder

  • January 15, 2011
  • 8 replies
  • 4578 views

Dear all,

Can anyone tell me how to get (from within Mathcad) the name of the folder(s) (not the files) within another folder ?

Thanks to good answers from the community I can now read a list of files within a specific folder and also delete the one's which I want to discard.

It works very well and I thank the mathcad champion's who answered my questions.

I still need to type the name of the specific folder.

In fact the main folder comprises many sub folder which themselves comprise the files to delete.

May be someone already answered in a file which I cannot open because I have Mathcad 14 and not the last update because I have no administrator rights for the company laptop.

Thank you

Youki

8 replies

1-Visitor
January 15, 2011

There is a component in my utilities sheet I posted recently to do just that.

Philip

1-Visitor
January 15, 2011

There is a component in my utilities sheet I posted recently to do just that.

Can you re-post it?

I have a copy of your latest worksheet and cannot seem to find the function.

Mike

1-Visitor
January 16, 2011

My collated utilities are Here http://communities.ptc.com/docs/DOC-1613 (V11 mcvd) and Here http://communities.ptc.com/docs/DOC-1612 (V14 xmcdz). They are under User 'philipoakley' // Documents.

Look in the "File & Directory Components" Area and then use the Directory List example.

I can't remember if this one requires the button to be clicked to get the action or if it will automatically execute. I think it is the former, i.e. the user directs where the code is going. I have used version where it is automatic (simply edit the 'state' control?) so will process all the directories.

Philip

1-Visitor
August 27, 2014

Dear All!

How can I get the name project (or projects) and the name subfolder (or subfolders) in project (Windchill ProjectLink 9.1) if I know name user in table WTUSER. i.e. I want to know which projects and subfolders uses user. I need to know relation between tables WTUSER, SUBFOLDER, PROJECT2 etc in DB ORACLE.

Thank you!

Yuri

1-Visitor
August 27, 2014

This is the Mathcad section.

You might want to post your query here http://communities.ptc.com/community/windchill

Message was edited by: Mike Armstrong