How to insert file names in a text file from command prompt

Author - Navneet Kashyap

For Windows user:

1. Open folder that contains files in console

2. type dir /b > D:test.txt (it will copy the result in test.txt file)

For Linux user:

1. Open folder that contains files in console

2. type ls > /home/user/test.txt (it will copy the result in test.txt file)

Webner Solutions is a Software Development company focused on developing Insurance Agency Management Systems, Learning Management Systems and Salesforce apps. Contact us at dev@webners.com for your Insurance, eLearning and Salesforce applications.

Leave a Reply

Your email address will not be published. Required fields are marked *

Send your message