0
我有一個文本文件與文件夾結構:Cmd的樹到JSON
+---A Momentary Lapse of Reason
+---A Saucerful of Secrets
+---Animals
+---Atom Heart Mother
+---Delicate Sound Of Thunder
+---Echoes- The Best of Pink Floyd
| +---Echoes- The Best of Pink Floyd Disc 1
| \---Echoes- The Best of Pink Floyd Disc 2
+---Is There Anybody out There- The Wall- Live 1980-1981 Disc 1
+---Is There Anybody out There- The Wall- Live 1980-1981 Disc 2
\---Works
我使用tree
接收到的命令從windows CMD
。 我想知道是否有簡單的方法將此結構轉換爲json
?
對於這樣的事情來說,手動操作並不難,但我需要爲12TB
文件夾執行此操作。
漂亮!我所要做的就是將'''添加到所有名稱(IE'echo(%pre%type:「folder」,'='echo(%pre%「type」:「folder」,'),我需要用'/'運行''替換'''。非常感謝:D –
「用'替換''''''' –
嗨,但我的代碼中沒有」\「,你是什麼意思? – Endoro