• Status: Solved
  • Priority: High
  • Security: Public
  • Views: 41
  • Last Modified:

using ii to open folder in explorer

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?
0
DevSupport
Asked:
DevSupport
  • 3
  • 3
1 Solution
 
AlanConsultantCommented:
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
0
 
DevSupportAuthor Commented:
I am using 5.1.14409.1005, when I opened with administrator option it worked. Thanks!
0
 
AlanConsultantCommented:
Cool - glad it is sorted!

Alan.
0
WEBINAR: 10 Easy Ways to Lose a Password

Join us on June 27th at 8 am PDT to learn about the methods that hackers use to lift real, working credentials from even the most security-savvy employees. We'll cover the importance of multi-factor authentication and how these solutions can better protect your business!

 
DevSupportAuthor Commented:
sorry, closed it too soon. can I reopen this question? it appears to work in local drives but not network drives
0
 
DevSupportAuthor Commented:
ii c:\p* - works

ii \\servername\lo* - does not work
0
 
AlanConsultantCommented:
Hi - Saw your new question - I will respond there.

Thanks,

Alan.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

How do you know if your security is working?

Protecting your business doesn’t have to mean sifting through endless alerts and notifications. With WatchGuard Total Security Suite, you can feel confident that your business is secure, meaning you can get back to the things that have been sitting on your to-do list.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now