Windows Vista Forums

The specified wildcard pattern is not valid: [

  1. #1


    Thomas Friis Poulsen Guest

    The specified wildcard pattern is not valid: [

    Hi All

    This:
    Get-Acl -Path \\server\f$\Home\B\[Foldername

    Gives the error "The specified wildcard pattern is not valid: [foldername
    if the share has a folder with a name that include a [
    Is this a bug or ???

    Best Regards

    Thomas

      My System SpecsSystem Spec

  2. #2


    Vadims Podans Guest

    RE: The specified wildcard pattern is not valid: [

    if "[" is in filename start, then:
    get-acl \\server\f$\Home\B\[[]*

    if "[" is in filename middle then:
    get-acl \\server\f$\Home\B\*[[]*

    if "[" is in filename end, then:
    get-acl \\server\f$\Home\B\*[[]

    enjoy!
    --
    WBR Vadims Podans
    PowerShell blog: www.sysadmins.lv


    "Thomas Friis Poulsen" wrote:

    > Hi All
    >
    > This:
    > Get-Acl -Path \\server\f$\Home\B\[Foldername
    >
    > Gives the error "The specified wildcard pattern is not valid: [foldername
    > if the share has a folder with a name that include a [
    > Is this a bug or ???
    >
    > Best Regards
    >
    > Thomas

      My System SpecsSystem Spec

  3. #3


    VEKk Guest

    RE: The specified wildcard pattern is not valid: [

    so, on my host
    PS Z:\test> $host.version

    Major Minor Build Revision
    ----- ----- ----- --------
    2 0 -1 -1

    all replies marked as Answer don't work now

    "Thomas Friis Poulsen" wrote:

    > Hi All
    >
    > This:
    > Get-Acl -Path \\server\f$\Home\B\[Foldername
    >
    > Gives the error "The specified wildcard pattern is not valid: [foldername
    > if the share has a folder with a name that include a [
    > Is this a bug or ???
    >
    > Best Regards
    >
    > Thomas

      My System SpecsSystem Spec


The specified wildcard pattern is not valid: [
Similar Threads
Thread Forum
Run Exe From a CD with wildcard VB Script
String pattern PowerShell
how to get the file name from using a wildcard VB Script
WildCard SSL Certificates Vista mail
Wildcard searches Vista file management