In addition, you could do this all on one line by placing the "DIR" command on the CMD.EXE line in the Run Dialog like this:
cmd.exe /cdir c:\ >c:\filelist.txt The /C parameter allows the string that follows to be fun as a command within CMD.EXE and then exit. You can use /K to run a command but leave the command prompt open. Remember that a path name containing spaces must be enclosed in quotations. Also, there are options for the "DIR" command such as /B that will affect the format of the output of the command. the /B will put one file per line with nothing else. The Greater-than sign causes the output to be redirected to a file and should be the last thing on the line. It is a good idea to create the file by specifying the folder as well so you know where it goes. Best regards, Steve Jacobson . On Tue, 19 Oct 2010 11:16:48 -0400, Aaron Smith wrote: >> [snip] you could either type Command, or CMD >Note that these are not one in the same. You should only use command if >you need legacy support. Otherwise, you will be using a limited >interface that uses more resources and overhead than cmd (especially >considering that all commands are executed by cmd in the end). >http://technet.microsoft.com/en-us/library/cc723564.aspx >Aaron >-- >Aaron Smith >Product Support Specialist * Web Development >GW Micro, Inc. * 725 Airport North Office Park, Fort Wayne, IN 46825 >260-489-3671 * gwmicro.com >To insure that you receive proper support, please include all past >correspondence (where applicable), and any relevant information >pertinent to your situation when submitting a problem report to the GW >Micro Technical Support Team. >If you reply to this message it will be delivered to the original sender only. >If your reply would benefit others on the list and your message is related to >GW Micro, then please consider sending your message to [email protected] so the entire list will receive it. >GW-Info messages are archived at http://www.gwmicro.com/gwinfo. You can manage >your list subscription at http://www.gwmicro.com/listserv. If you reply to this message it will be delivered to the original sender only. If your reply would benefit others on the list and your message is related to GW Micro, then please consider sending your message to [email protected] so the entire list will receive it. GW-Info messages are archived at http://www.gwmicro.com/gwinfo. You can manage your list subscription at http://www.gwmicro.com/listserv.
