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

'\\pcname-vm\c$\program files\adobe'

In a single-quoted string, '\' is special. See Quote Like Operators, which says:

A backslash represents a backslash unless followed by the delimiter or another backslash, in which case the delimiter or backslash is interpolated.

So, your single quoted string should be:

'\\\\pcname-vm\c$\program files\adobe'