Results 1 to 8 of 8
-
19th Oct 2012, 06:44 AM #1OPMember
List files in all subfolders
I have a directory with a bunch of subfolders (contains special/chinese characters) I want to create a txt file in each subfolder that will list all the files in that subfolder. I am running Windows Server 2003. How can I do this with CMD? or any other tools
Ruriko Reviewed by Ruriko on . List files in all subfolders I have a directory with a bunch of subfolders (contains special/chinese characters) I want to create a txt file in each subfolder that will list all the files in that subfolder. I am running Windows Server 2003. How can I do this with CMD? or any other tools Rating: 5
-
20th Oct 2012, 07:28 AM #2Member
This lists all the files (and only the files) in the current directory:
for /r %i in (*) do echo %i
for /r %%i in (*) do echo %%i
-
21st Oct 2012, 06:42 AM #3OPMember
it lists the file but it doesn't create the txt file
-
21st Oct 2012, 03:52 PM #4Respected Member
Just use the other one I made and add the dir like this
Code:@setlocal EnableDelayedExpansion @echo off chcp 65001 > nul for /F "delims=" %%a in ('dir /ad /b /s') do ( @echo %%~nxa > %%a\test.nfo dir /b %%a\*.* >> %%a\test.nfo )
-
22nd Oct 2012, 11:13 AM #5OPMember
Doesn't seem to work all it does is gives me the folder name instead of listing all the files in that subfolder
-
22nd Oct 2012, 03:36 PM #6Respected Member
If you have sub folders in folders it will show those along with the file names. It is working fine for me..
Let me add the chinese folders back and see how it works..
Ok try this one
Code:@echo off chcp 65001 > nul for /F "delims=" %%a in ('dir /ad /b /s') do ( pushd somedir cd %%a for /f "delims=" %%f in ('dir /b /a-d-h-s') do ( @echo %%~nxa > test.nfo @echo %%f >> test.nfo) popd )
-
26th Oct 2012, 08:02 AM #7OPMember
ok that one works now
-
26th Oct 2012, 04:53 PM #8Respected Member
You are welcome. Also need to check your posts a little more ..
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
List of FIlehost which allows free download of big files
By babarali124 in forum File Host DiscussionReplies: 8Last Post: 10th Aug 2012, 11:53 PM -
Does Hotfiles Copy Option Backup Files? (DMCA Removed Files)
By elpirata in forum File Host DiscussionReplies: 4Last Post: 20th Jan 2011, 05:26 PM -
[linux]Rar files, upload to RS,Hotfile,fileserve,sharingmatrix then delete the files
By jpavsex in forum Tutorials and GuidesReplies: 10Last Post: 13th Jul 2010, 04:49 PM -
[Source Files] Anti-Freeze & Lockout Files [Paypal]
By ka0s_ in forum Completed TransactionsReplies: 1Last Post: 25th Oct 2009, 01:10 PM -
List of ips what spam/ddos - Please add yours if you have a list
By Sp32 in forum Webmaster DiscussionReplies: 23Last Post: 3rd Jul 2009, 04:07 AM
themaManager - edit and manage...
Version 4.04 released. Open older version (or...