Quick Answer: How to Run. Sh File in Windows?
Contents

How do I run a script in Windows?

Within your Windows environment, you can quickly run the script using of these methods:

  • Double-click the icon of the script file just as you would with an executable file.
  • Click the Start button, and then click Run.
  • From the command line, type the name of the script.
  • Schedule the script using Windows Task Scheduler.

How do I run a .sh file?

Steps to write and execute a script

  1. Open the terminal. Go to the directory where you want to create your script.
  2. Create a file with .sh extension.
  3. Write the script in the file using an editor.
  4. Make the script executable with command chmod +x <fileName>.
  5. Run the script using ./<fileName>.
Maya Lin-Takahashi

Maya Lin-Takahashi

Consumer Tech & Gadget Reviewer

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.

Share this article
Twitter Facebook Pinterest