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

mysql - where clause in inner join query -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

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