in reply to Re: Quickest way to get a list of all folders in a directory
in thread Quickest way to get a list of all folders in a directory

Nah dude, the OP is doign these on OTHER machines. Make the slashies into / will make it look locally on his/her machine and not the target's.
  • Comment on Re^2: Quickest way to get a list of all folders in a directory

Replies are listed 'Best First'.
Re^3: Quickest way to get a list of all folders in a directory
by ikegami (Patriarch) on Aug 13, 2009 at 14:58 UTC

    Not true. / and \ are interchangeable in Windows. Both of the following strings are acceptable:

    • \\pcname-vm\c$\program files\adobe
    • //pcname-vm/c$/program files/adobe

    (You can mix and match too)

    All of the following Perl string literals create one of those strings:

    • "\\\\pcname-vm\\c\$\\program files\\adobe"
    • "//pcname-vm/c\$/program files/adobe"
    • '\\\\pcname-vm\\c$\\program files\\adobe'
    • '\\\pcname-vm\c$\program files\adobe'
    • '//pcname-vm/c$/program files/adobe'