timethrow Posted November 30, 2011 Posted November 30, 2011 Hi all, I am in need of a script to produce a txt file congaing everything in a folder and all of its sub directories including all the files and folders in there e.g C:\ -C:\Users\ --C:\Users\TestUser\ --C:\Users\Fake Account\ ---C:\Users\TestUser\file1.txt ---C:\Users\TestUser\idontknow.bat -C:\Windows\ -C:\Program Files\ etc etc if u get the idea, Does anyone know of a script that could do that ?
Devontechie Posted November 30, 2011 Posted November 30, 2011 you could use the DIR command in CMD. Can't remember what switch is needed on the end but if you do DIR /? in CMD it will give you a list of switches you can use. 1
timethrow Posted November 30, 2011 Author Posted November 30, 2011 Hi Steve, Thanks for the reply, However that only lists the stuff in the specific folder not in sub-directories etc. Which is what I would like to do. Thanks Anyway
bmdixon Posted November 30, 2011 Posted November 30, 2011 dir /b /d /s should be something like that... 1
Finch7 Posted November 30, 2011 Posted November 30, 2011 dir /a /s >file.txt it isn.t pretty but it works 1
box_l Posted November 30, 2011 Posted November 30, 2011 dir /s /a-d /b /on-s >> ./File_Listing.txt BoX 1
timethrow Posted November 30, 2011 Author Posted November 30, 2011 Apologies to Steve and thanks to you all, That has worked beautifully
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now