leoliver Posted October 13, 2007 Share Posted October 13, 2007 Hi Everyone, I'm new at using the Windows XP command prompt. Recently, I just learned how to create a text file containing a list of a directory's contents. I used this command "I:\>tree I:\ > list.txt" to create a text list of my music files in my I: partition. When I opened the list, I found that all the entries were listed such as : ÀÄÄÄAudio and Video ÀÄÄÄMy Music 10 , with each mp3 with the AAAA before each file. So my question is does anyone know what the "AAAA" means ?Thanks ! Link to comment Share on other sites More sharing options...
adamt Posted October 13, 2007 Share Posted October 13, 2007 Just tried this on mine and found the same thing. The bizarre characters don't show up if you run "type list.txt" - so I'm guessing it's some ASCII characters that notepad doesn't understand how to render properly in the transition between UTF-8 and Unicode.If you just run the TREE command, you get pretty lines showing the directory structure. If you view the output using the TYPE command, they can appear as dots or lines (depending on which font you use), and if you view the output using notepad.exe, they appear as the funny Aa type things.According to charmap, the character is a "Latin capital letter A with Diaeresis". Link to comment Share on other sites More sharing options...
nmX.Memnoch Posted October 13, 2007 Share Posted October 13, 2007 If you want it without all the extra characters try this:dir I:\ /s /on /b > list.txt Link to comment Share on other sites More sharing options...
adamt Posted October 13, 2007 Share Posted October 13, 2007 If you want it without all the extra characters try this:dir I:\ /s /on /b > list.txtThat will list every file in every directory, unlike TREE, which just shows directory structure.You could modify that DIR statement with a /A:D switch, so that only directories are returned. Link to comment Share on other sites More sharing options...
Yzöwl Posted October 13, 2007 Share Posted October 13, 2007 I used this command "I:\>tree I:\ > list.txt" to create a text list of my music files in my I: partition.I've no idea what that command is supposed to do, why would you not be using:TREE/F I:\>list.txtIf you still require 'plain' ASCII then:TREE/F /A I:\>list.txtIf you just wanted the directories and not their files listing then:TREE I:\>list.txtOr the ASCII version:TREE/A I:\>list.txt Link to comment Share on other sites More sharing options...
Ponch Posted October 14, 2007 Share Posted October 14, 2007 Maybe dir I:*. /b /s >list.txt also look like what you want ? Link to comment Share on other sites More sharing options...
leoliver Posted October 14, 2007 Author Share Posted October 14, 2007 Thanks for your replies ! Link to comment Share on other sites More sharing options...
Mijzelf Posted October 14, 2007 Share Posted October 14, 2007 When you configure Notepad to use the 'Terminal' font, it should show OK. Link to comment Share on other sites More sharing options...
gunsmokingman Posted October 14, 2007 Share Posted October 14, 2007 (edited) I was bored so I made this vbs script that uses the Tree cmd.All you have to do is Drag and Drop a folder on the script. 1:\ Create a text file call FOLDER_DRAP_DROP_NAME_Listdir.txt and adds the Tree info to it.The Text File is made in the same folder where this script is located.2:\ Runs the Tree in cmd promt3:\ Since this uses VBS Drag and Drop you can place up to 24 folders on this script at one time.It then produces a Text File for each folderSave As Tree.vbs Dim Act, F1, F2, Fso, Text Set Fso = CreateObject("Scripting.FileSystemObject") Set Act = CreateObject("Wscript.Shell") If WScript.Arguments.Count = 0 Then '/-> If Nothing Is Drop On To The File Act.Popup " This script needs at least One folder, to be" & vbCrLf &_ " Drag and Drop on to this script to start.",30,"Error No Source", 4128 Else '/-> Start The Collection Of Folders For Each F1 in Wscript.Arguments Set F2 = Fso.GetFolder(F1) Text = Fso.GetParentFolderName(WScript.ScriptFullName) & "\" & F2.Name & "_ListFolder.txt" Act.Run("%Comspec% /C @Echo Off && CLS && Color F3 && Title " & F2.Name & " && " &_ "Tree/A " & F1 & " > " & Text & " && Tree " & F1 & " && pause"),1,True Next End If Edited October 14, 2007 by gunsmokingman Link to comment Share on other sites More sharing options...
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