Skip to main content
Jan 15, 2011 8:24 PM UTC
Question

Get list of subfolder name in a folder

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
Jan 15, 2011 8:41 PM UTC

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

Philip

Translate
1-Visitor
Jan 15, 2011 11:55 PM UTC

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

Translate
1-Visitor
Jan 16, 2011 10:49 AM UTC

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

Translate
1-Visitor
Aug 27, 2014 12:11 PM UTC

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

Translate
1-Visitor
Aug 27, 2014 12:17 PM UTC

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

Translate