How can I get subfolder name in txt file?:( if u can replay me its so imp
Thanks a lot :)
How can I get subfolder name in txt file?:( if u can replay me its so imp
Thanks a lot :)
Really don't understand what trying to do
I thik I know the question you are asking:
Go to the sub-folder.
Do a Right-Click Rename.
Select the name and do a control C (Copy)
Paste name into txt file.
You don't rename the file, but you use that mechanism to be able to copy the name.
If that is what looking to do, right click on the subfolder and click properties
-When properties box comes up, you will be able to copy the name of the folder and then paste it where you like
Ihave 1000 subfolders icant use copy/paste ineed another way for get subfolder name to txt file :(
I know how to do it, but you won't like it at all.
Here is an example of just sub-folders from my Windows XP system.
$ ls -d -1
Bin
Cygdrive
Cygwin.bat
Cygwin.ico
Etc
Home
Lib
Proc
Sbin
Srv
Tmp
Usr
Var
Making the command "ls -d -1 > a.out" will put the files in the filename a.out. The -D is just list directories and the -1 is 1 per line.
Well, it was supposed to list the directories, but it listed all of the files including the directories.
I installed cygwin which is a linix-like environment that runs under Windows. It's a free package.
Nonetheless, you can get this list:
drwxrwx---+ 2 normal Users 0 Sep 6 2006 bin
dr-xr-xr-x 1 0 0 0 Dec 31 1969 cygdrive
-rwxr-x---+ 1 normal Users 57 Apr 24 2006 cygwin.bat
-rwxr-x---+ 1 normal Users 7022 Sep 6 2006 cygwin.ico
drwxrwx---+ 35 normal Users 0 Sep 7 2006 etc
drwx------+ 4 normal None 0 Sep 3 2006 home
drwxrwx---+ 57 normal Users 0 Sep 5 2006 lib
dr-xr-xr-x 1 normal None 0 Feb 28 14:58 proc
drwxrwx---+ 2 normal Users 0 Apr 24 2006 sbin
drwxrwx---+ 3 normal Users 0 Apr 24 2006 srv
drwxrwxrwt+ 2 normal Users 0 Feb 28 14:58 tmp
drwxrwx---+ 19 normal Users 0 Sep 5 2006 usr
drwxrwx---+ 13 normal Users 0 Apr 27 2006 var
with an "ls -a"
The d in the first column is directory.
Hi KeepItSimpleStupid tahnks a lot 4 your answer but icant understand your seloution can you explain it to me
This is cygwin
Documentation
Not sure if you need the names of just the directories or the files too. In my list cygwin.bat and cygwin.iso are files and not directories.
Using the cmd prompt, "DIR /AD >filename" can also work. It will give an output such as:
Directory of C:\Documents and Settings\normal
02/28/2009 01:48 PM <DIR> .
02/28/2009 01:48 PM <DIR>..
11/26/2006 07:25 PM <DIR> .DownloadManager
07/02/2008 05:02 AM <DIR> .SunDownloadManager
01/31/2006 11:22 AM <DIR> animation
02/19/2009 11:01 PM <DIR> Application Data
02/27/2009 04:27 PM <DIR> Cookies
02/28/2009 05:38 AM <DIR> Desktop
08/07/2008 01:18 PM <DIR> Favorites
01/31/2006 11:22 AM <DIR> images
01/16/2006 01:04 PM <DIR> Local Settings
09/25/2008 01:54 PM <DIR> macabletemp
02/27/2009 03:42 PM <DIR> My Documents
01/19/2009 12:06 AM <DIR> NetHood
04/29/2005 02:24 AM <DIR> PrintHood
02/28/2009 05:44 AM <DIR> Recent
01/06/2009 04:07 PM <DIR> SendTo
04/29/2005 02:24 AM <DIR> Start Menu
04/29/2005 02:24 AM <DIR> Templates
09/18/2005 10:17 AM <DIR> UserData
10/15/2006 04:19 PM <DIR> viewone
01/31/2006 11:22 AM <DIR> win2k_xp
10/15/2005 12:08 AM <DIR> WINDOWS
0 File(s) 0 bytes
23 Dir(s) 20,630,265,856 bytes free
You should be able to import into Excel, delete the 3 columns and export as text.
I would use
DIR /AD/S > filename.txt
This will give you a listing of all directories and their subdirectories in a text file names filename.txt
If you want to include the file in the directories then use
DIR /S > fielename.txt
All times are GMT -7. The time now is 12:02 PM. |