Q&A for How to Run an EXE File From Command Prompt

Return to Full Article

Search
Add New Question
  • Question
    How can I make a exe file safe?
    Luigi Oppido
    Luigi Oppido
    Computer & Tech Specialist
    Luigi Oppido is the Owner and Operator of Pleasure Point Computers in Santa Cruz, California. Luigi has over 25 years of experience in general computer repair, data recovery, virus removal, and upgrades. He is also the host of the Computer Man Show! broadcasted on KSQD covering central California for over two years.
    Luigi Oppido
    Computer & Tech Specialist
    Expert Answer
    Be sure to scan the exe file with your antivirus program first—sometimes, the program can open up that package and see malicious things that are inside. Still, you should only ever open an exe file when you know exactly what it is, as these files can be very dangerous.
  • Question
    How can I run the exe as an executable if I know the file extension is not exe? For example, if the file is compiled on Linux and transferred to Windows, how would I run the file without an extension?
    Community Answer
    Community Answer
    Edit the file's name (press F2 or right click and rename), then add an .exe to run the file as executable in Windows.
  • Question
    How can you open an exe file on raspbian using a command prompt?
    Community Answer
    Community Answer
    Raspbian is a version of Linux, not Windows. Only Windows can run exe files, you'll need to get a Linux version of the program you're trying to use.
  • Question
    Why we can not use the path directly to the exe file?
    Community Answer
    Community Answer
    You can, but if the path contains spaces, you will need to put your path between quotation marks. Alternatively, you can use the Start command: start C:\path\to\executable\app.exe.
  • Question
    Lets say I want to run an exe to install ethernet drivers. How would I do it so everything it gets from it would get moved to the “wired” foldering in the “network” folder. Thanks
    Arrogance
    Arrogance
    Top Answerer
    That depends very much on how the program was created. There isn't an answer that will work with every single possible installer/self-extracting archive. For ones created with WinZip, you would use: '''ethernet.exe -d C:\network\ethernet'''
  • Question
    How to open BASIC in CMD?
    Arrogance
    Arrogance
    Top Answerer
    Basic is not included with recent versions of Windows. In Windows 95, 98, and ME, you can open a Basic interpreter with the QBASIC command.
  • Question
    Can I install Anaconda software in a PC using cmd?
    Aidan
    Aidan
    Community Answer
    No, you cannot install programs with command prompt. You may want to check the folder the software is located in and run the setup program.
  • Question
    How can I reach command prompt from a boot-looped laptop running Windows 10?
    Aidan
    Aidan
    Community Answer
    Try to start Windows in safe mode, or put a Windows install disc into your DVD drive. It should give you the option to start a command prompt.
  • Question
    The $ sign doesn't work in Command Prompt. Any advice?
    Ilovetohelpyou.forfree
    Ilovetohelpyou.forfree
    Community Answer
    Try restarting. Make sure you hold down shift key +4 or copying it off here, then pasting $.
  • Question
    When I try to change the directory using cd C:/Program Files/ it says: The system cannot find the path specified. cd C:/Documents and settings works, but it's wrong with every other way.
    SoyokoAnis
    SoyokoAnis
    Community Answer
    This means the account on the PC is run from a Microsoft account, not a local account. You'll need to hard reset your computer.
  • Question
    How do you know if your USB drive is corrupted? I've tried this with two different laptops and the CMD still says "The system cannot find the path specified."
    Minespids92
    Minespids92
    Community Answer
    You can check for corruption by using checkdisk. to run check disk for a USB on drive D:\ you need to launch CMD with admin, type in chkdsk d:\ /f /x. the /f switch will tell windows to fix any errors. the /x switch will tell windows to forcefully unmount the drive before scanning.
  • Question
    It is showing your file does not exist, even if it exists...wht to do???
    Nithik R
    Nithik R
    Community Answer
    Make sure you are in the correct directory. For example, if your file is in "C:/path/to/folder" you have to ` cd C:/path/to/folder ` while replacing it with the actual path. If you still can't make it work, then your file is probably broken or corrupted.
  • Question
    How to open run.exe on cmd?
    Community Answer
    Community Answer
    You don't open run from the command prompt, you can access the Run dialog by holding the Windows logo key on your keyboard and pressing the R button.
  • Question
    How can I fix my USB? When I put in my computer says 0 bytes and it's 16GB?
    The coding cat
    The coding cat
    Community Answer
    The drive may be full or it could be corrupted. Try running a drive scan and if that does not work, speak to Microsoft support about this issue.
  • Question
    The CMD keeps telling me "specified file path doesn't exists" but it exists.
    The coding cat
    The coding cat
    Community Answer
    Make sure the file/folder is not corrupted and that this is the correct location.
  • Question
    What if the file is one some other drive than C?
    The coding cat
    The coding cat
    Community Answer
    Instead, type "$:/your/file/location". Where $ is the letter for your different drive.
  • Question
    After following the process, I am getting error "Failed to execute script". Could you please help me in this?
    The coding cat
    The coding cat
    Community Answer
    This may be because the script you are trying to run is broken or it cannot be found.
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit

Return to Full Article

You Might Also Like

Change Directories in Command Prompt Navigate to a Different Folder in the Command Prompt
Format a USB Using Cmd Format a USB Using CMD (Command Prompt)
Change a Computer Password Using Command Prompt Change a Windows Password Using Command Prompt
Reboot from Command Prompt on WindowsReboot from Command Prompt on Windows
Open a Folder in Cmd Open a Folder in Command Prompt (CMD)
Use Windows Command Prompt to Run a Python FileUse Windows Command Prompt to Run a Python File
Add Users from CMDAdd Users from CMD
Run a Batch File from the Command Line on Windows Run a Windows Batch File from the Command Line (CMD)
Open the Command Prompt in Windows5 Simple Ways to Open the Command Prompt in Windows
Open Command Prompt with a Keyboard Shortcut (Windows 8, 8.1, and 10)3 Ways to Open Command Prompt with Keyboard on Windows
Use Net SendUse Net Send
Copy Files in Command PromptCopy Files in Command Prompt
Watch Star Wars on Command Prompt Watch Star Wars via Telnet: Windows CMD & Mac Terminal
Merge Text (.Txt) Files in Command Prompt Merge Multiple Text Files in Command Prompt, Notepad, & More