“193: %1 is not a valid Win32 application” bug with a new Rails Application

前端 未结 6 2031
北海茫月
北海茫月 2020-11-29 07:08

I have a new rails application which I have created under Windows 7 by going into a directory and typing \"rails newapp\". The creation went fine, and when I access the root

6条回答
  •  悲哀的现实
    2020-11-29 07:32

    This error occurs if you have a file with name "Program" in the root of your drive. Say for example you are trying to execute "C:\Program Files\SomeApp\Bin\SomeExe.Exe" it tries to execute "C:\Program" if it exists. In some situations a file with this name get created if you forget to quote "C:\Program Files..." with some commandline commands. This of course also applies for you D: drive, etc.

    This error often occurs if you try to start services, but may occur in other situations.

    Simply deleting the file C:\Program or D:\Program etc. solves the problem.

提交回复
热议问题