Я запампаваў файл .exe, але ён хутка зачыняецца пры адкрыцці (I've downloaded an .exe file but it closes quickly as it opens)


問題描述

Я запампаваў файл .exe, але ён хутка зачыняецца пры адкрыцці (I've downloaded an .exe file but it closes quickly as it opens)

I am trying to open a downloaded .exe file but it closes as soon as it opens. Is there any possible way so that I can open it for a longer duration to read the content.

‑‑‑‑‑

參考解法

方法 1:

It's probably a console application rather than a GUI application.  Use the command prompt to run the .exe. Do the following...

Hold down your Windows key on your keyboard and then tap "R". This will bring up the Run dialog.  Type in "cmd" (without the quotes).  Hit enter. (this will work in all Windows versions ‑ browsing the start menu/screen differs in each version)

If you saved the file to c:\downloads and it's called myFile.exe, type

C:
cd C:\Downloads
myFile.exe

Some of the steps are a bit redundant ‑ if you know what you're doing in the command prompt then skip as needed (but then you probably wouldn't be posting this question).  This will work even if you saved the file to D:\downloads.

Another example ‑ if you saved the file to D:\folderA\Folder with a space\ and the file is called "my file with a space.exe" then type

D:
cd "D:\folderA\Folder with a space"
"my file with a space.exe"

If there is an issue (eg it's a 64‑bit executable and you're on 32‑bit Windows) then you may get a better error message at the command line.

方法 2:

There are so many reasons why the executable does not run. Here are some ways to check what is going wrong:

  • Is it your .exe? Do you known the "normal" behavior?
  • When you download it manually, it the result the same?
  • Do you download the .exe manually or via your application?
  • Do you see any problem in your Windows Event Viewer?
  • Is it the same result if you try to download the .exe via different browsers (IE, FF, ...)?

More details are welcome!

方法 3:

The nuget.exe file is not a console GUI application but rather a console package. Once you've downloaded it, you'll want to place it in a folder outside your Downloads folder. For example, C:\NuGet\nuget.exe ‑ then set it as a PATH variable so that it's executable from anywhere.

(by ssinghIan YatesSerge BollaertsJay)

參考文件

  1. I've downloaded an .exe file but it closes quickly as it opens (CC BY‑SA 3.0/4.0)

#exe






相關問題

lauch4j 你好世界程序 (lauch4j hello world program)

在具有提升權限的自己的目錄中啟動 .exe (Launching .exe in its own directory with elevation priviledges)

Я запампаваў файл .exe, але ён хутка зачыняецца пры адкрыцці (I've downloaded an .exe file but it closes quickly as it opens)

Ці добрая ідэя абараніць exe-файл з дапамогай os.path.exists? (Is it a good idea to protect a exe file using os.path.exists?)

如何將我的 Java 程序轉換為 .exe 文件? (How can I convert my Java program to an .exe file?)

有沒有辦法從 firefox 和 chrome 啟動 exe 應用程序 (Is there a way to launch exe application from firefox and chrome)

打開 .jar 文件時發生 java 異常 (a java exception has occured while opening .jar file)

錯誤,不運行程序(Windows) (error, not run program (windows))

如何從LabVIEW上編寫的應用程序(Exe)將數據返回到命令行界面? (How to return data to Command line Interface from Application (Exe) written on LabVIEW?)

pyinstaller --onefile 不會復制必要的文件 (pyinstaller --onefile doesn't copy necessary file)

系統找不到指定的路徑 - 批處理到exe (The system cannot find the path specified - batch to exe)

使用另一個 Python 文件的主 Python 文件(我想轉換為 .exe) (Main Python File Using Another Python File (I Want To Convert To .exe))







留言討論