Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5999259
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:31:38+00:00 2026-05-23T00:31:38+00:00

When attempting to create a new Ruby on Rails app in Windows the command

  • 0

When attempting to create a new Ruby on Rails app in Windows the command

rails new test_app 

returns an error

'rails' is not recognized as an internal or external command, operable program 
or batch  file

but the command

rails.bat new test_app

works just fine. I have added the ..\ruby\bin directory to my PATH variable but it doesn’t seem to change anything. A similar problem occurs for all other ‘rails’ commands as well as for ‘rake’ vs ‘rake.bat’.

Running type rails.bat returns:

@ECHO OFF
IF NOT "%~f0" == "~f0" GOTO :WinNT
@"ruby.exe" "C:/_LOCALdata/Ruby192/bin/rails" %1 %2 %3 %4 %5 %6 %7 %8 %9
GOTO :EOF
:WinNT
@"ruby.exe" "%~dpn0" %* 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T00:31:39+00:00Added an answer on May 23, 2026 at 12:31 am

    From your updated question I can assume that PATHEXT, the environment variable responsible for knowing files to be executed without extensions is missing .BAT from it.

    To confirm, please do SET PATHEXT on a new command prompt and see the output, the result should be a semi-colon separated values that include .EXE, .BAT, .COM and perhaps .RB

    If PATHEXT is empty or do not contain .BAT in it, that could explain why is not working.

    Depending on your version of Windows, the installation of RubyInstaller might have caused that, in which case I recommend uninstall and verify the environment variables to see if it get restored.

    Then try to install it again.

    See this thread on RubyInstaller about this.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm fairly new to Ruby on Rails, and I'm attempting to create some fancy
In my Rails app I am attempting to create a form that allows users
I'm attempting to create a new iPad project for an app I'm working on,
I am attempting to create new membership users in an Ektron CMS400.NET-based website by
I'm attempting to learn Ruby on Rails. I'm pretty confident with the basics and
In Ruby on Rails, I'm attempting to update the innerHTML of a div tag
I'm attempting to create a new user using the following code snippet. using (var
I'm attempting to create a new project in TFS 2008. The process errors out
I am new to iOS development. I am attempting to create a read and
I'm attempting to create a custom calendar control that inherits from ASP.Net's built in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.