How Do I Write a Script for Windows 10?

How Do I Write a Script for Windows 10?
Contents

How do you write a script and save it?

To save a script

Press CTRL + S or, on the toolbar, click the Save icon, or on the File menu, click Save.

How do I write a Windows script from command line?

Creating a Text File Script

  1. Open Notepad. …
  2. In the second line, type: dir “C:Program Files” > list_of_files.txt.
  3. Select “Save As” from the File menu and save the file as “program-list-script. …
  4. Double-click the new text file on your desktop to see the list of files and folders.
James H. Sterling
Author

James H. Sterling

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.