Open all folders that start with the same 3 characters?

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
reimon9
Newbie
Posts: 14
Joined: Mon Oct 01, 2007 9:15 pm

Open all folders that start with the same 3 characters?

Post by reimon9 » Mon Aug 18, 2008 11:21 am

Hello !!!

What is the best way to open all folders that start with the same 3 characters?

Run Program>explorer c:\win* not work

Greetings,

Reimon

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Mon Aug 18, 2008 11:46 am

I don't think Windows Explorer accepts a wildcard in that fashion.

How about this:

Code: Select all

Let>GFL_TYPE=1
GetFileList>c:\win*,folder_list,;
Separate>folder_list,;,folders
Let>k=0
Repeat>k
  Let>k=k+1
  Let>this_folder=folders_%k%
  Run>explorer %this_folder%
Until>k=folders_count
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

reimon9
Newbie
Posts: 14
Joined: Mon Oct 01, 2007 9:15 pm

Open all folders that start with the same 3 characters?

Post by reimon9 » Mon Aug 18, 2008 4:15 pm

OK. thanks a lot !!!

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts