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

flip the slashes
  • Comment on Re: Quickest way to get a list of all folders in a directory

Replies are listed 'Best First'.
Re^2: Quickest way to get a list of all folders in a directory
by Anonymous Monk on Aug 13, 2009 at 14:52 UTC
    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.

      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'