![]() Note: the cmd /r part of this command tells PowerShell to execute the command as typed and then exit. If you prefer just a list of the filenames themselves, you can modify the previous command with the /b switch: cmd /r dir /b > filename.txt When you open the file in Notepad, or in your favorite text editor or word processor, you’ll see the same directory listing you would see had you just used the dir command alone at the prompt. ![]() Windows creates a file in that same directory by whatever name you chose. ![]() At the prompt, type the following command (replacing “filename.txt” with whatever you want the resulting file to be named), and then press Enter: dir > filename.txt
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |