windows - List sub-folders and their files using Command-line in different Drives -


मेरे विंडोज कंप्यूटर पर मेरे पास कुछ ड्राइवर्स हैं:

  ई: \ folder1 F: \ folder2 \ folder3 G: \ folder4 H: \ folder5 H: \ folder6 \ folder7 \ folder8 ...   

जैसा कि आप ऊपर देखते हैं, फ़ोल्डर्स के समान माता-पिता नहीं हैं (मैं एक पाठ फ़ाइल में फ़ोल्डर nmaes ऊपर रख रहा हूँ।) मैं उप फ़ोल्डर्स और उपरोक्त फ़ोल्डर की फाइलों को सूचीबद्ध करना चाहता हूँ।

इसे इसे करना चाहिए:

  @echo off / f के लिए "usebackq delims =" %% a in ("textfile.txt") करो (dir / b / s "%% a" & gt; & gt; "% userprofile% \ desktop \ results.txt") रोकें  < / प्री>  

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

java - Why my included JSP file won't get processed correctly? -

asp.net mvc 3 - MVC routing problem -