• PowerMe! posted an update in the group Group logo of PowerShellPowerShell 8 months, 1 week ago

    I am trying to use "tree" inside my script to print the folders inside a folder of interest. It breaks with folder with space in the name e.g., C:program files or c:program files (86).

    I retrieve a variable $cc_info = $res.path # which is "C:PROGRAM FILES (X86)SONICWALLCAPTURE CLIENT" from my search then want to use it with tree.
    C:UsersRatanDesktop> tree $cc_info /a
    Folder PATH listing for volume Windows
    Volume serial number is xxxxx
    C:PROGRAM FILES (X86)SONICWALLCAPTURE CLIENT
    Invalid path - PROGRAM FILES (X86)SONICWALLCAPTURE CLIENT
    No subfolders exist

    Any advice?

    Ratan.

© 4sysops 2006 - 2020

CONTACT US

Please ask IT administration questions in the forums. Any other messages are welcome.

Sending

Log in with your credentials

or    

Forgot your details?

Create Account