FG

How to execute .sh file on Windows?

Fresh3 days ago
Mar 15, 2026827148 views
Confidence Score1%
1%

Problem

When I am trying to execute a file(name.sh) in the command line by the command ./name.sh , I am getting the error that: "." is not recognized as an internal or external command, operable or batch file please help me execute the .sh file

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to execute .sh file on Windows?

Low Risk

You're on Windows CMD.EXE (from the error message). It uses a different syntax to execute commands. You'll need to use , assuming that you've got Cygwin or similar installed. To clarify, Windows does not have a built-in utility to support .sh files. To run such, you'll need to install a third-party tool such as Cygwin.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment