using ii to open folder in explorer

DevSupport
DevSupport used Ask the Experts™
on
I am trying to open all explorer folders which match a pattern with ii command, the folders are network shares.

when I try ii "\\servername\logs" - I am able to open

when I try ii "\\servername\log*" - I am not able to open.

Is it possible to open multiple folders which match a pattern like

ii \\servername\*log* can it open all folders matching that pattern?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Consultant
Commented:
Hi,

These all work for me:

II C:\Temp\AlanA
II C:\Temp\AlanB
II C:\Temp\Alan*
II C:\Temp\*lan*

With the last two, I get two windows opened (AlanA and AlanB)

Might be different in different versions of PowerShell.  I am running 5.1.15063.608

Use this to get your version:

$PSVersionTable


Alan

Author

Commented:
I am using 5.1.14409.1005, when I opened with administrator option it worked. Thanks!
AlanConsultant

Commented:
Cool - glad it is sorted!

Alan.

Author

Commented:
sorry, closed it too soon. can I reopen this question? it appears to work in local drives but not network drives

Author

Commented:
ii c:\p* - works

ii \\servername\lo* - does not work
AlanConsultant

Commented:
Hi - Saw your new question - I will respond there.

Thanks,

Alan.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial