batch file to list folders within a folder to one level

后端 未结 3 928
轮回少年
轮回少年 2021-02-04 01:57

I have searched and searched to no avail so apologies if the answer does exist.

I am not very good with batch files so please keep this in mind.

All I am after i

3条回答
  •  感情败类
    2021-02-04 02:51

    I tried this command to display the list of files in the directory.

    dir /s /b > List.txt

    In the file it displays the list below.

    C:\Program Files (x86)\Cisco Systems\Cisco Jabber\XmppMgr.dll

    C:\Program Files (x86)\Cisco Systems\Cisco Jabber\XmppSDK.dll

    C:\Program Files (x86)\Cisco Systems\Cisco Jabber\accessories\Plantronics

    C:\Program Files (x86)\Cisco Systems\Cisco Jabber\accessories\SennheiserJabberPlugin.dll

    C:\Program Files (x86)\Cisco Systems\Cisco Jabber\accessories\Logitech\LogiUCPluginForCisco

    C:\Program Files (x86)\Cisco Systems\Cisco Jabber\accessories\Logitech\LogiUCPluginForCisco\lucpcisco.dll

    What is want to do is only to display sub-directory not the full directory path.

    Just like this:

    Cisco Jabber\XmppMgr.dll Cisco Jabber\XmppSDK.dll

    Cisco Jabber\accessories\JabraJabberPlugin.dll

    Cisco Jabber\accessories\Logitech

    Cisco Jabber\accessories\Plantronics

    Cisco Jabber\accessories\SennheiserJabberPlugin.dll

提交回复
热议问题