Return to site

Command Line Open File

broken image


  • Simply specify a ZIP archive filename in place of an SQLite database filename on the initial command line, or in the '.open' command, and sqlite3 will automatically detect that the file is a ZIP archive instead of an SQLite database and will open it as such. This works regardless of file suffix.
  • I would like to open the application WordPad by using the command prompt (CMD) in Windows. If it is possible, I would like to pass the path to a file so that the file is directly opened in WordPad. Unfortunately, the commands 'wordpad' or 'wpad' are not working and I only get a hint that the command is written in a wrong way or could not be found.

Open the folder your program is in. Navigate to the folder that has the program you want to open by clicking on any folders needed to get to it. When the icon for the program you want to open in Command Prompt displays in the middle of the File Explorer window, you're in the correct folder. For instance,.html files will open in a web browser and.pdf will be opened with Document Viewer. Is there a way to reproduce the same behavior from within the command line (i.e. Open path/filename)? I'm asking because I like to browse my file-system from the command line but sometimes don't remember which app.

Summary :

You can run a program or an exe file from Command Prompt. Check how to do it in this tutorial. MiniTool software, not only provides many useful computer solutions, but also provides users many useful computer software like data recovery program, disk partition manager, system backup and restore software, video editor, etc.

If you want to run program from CMD (Command Prompt) on Windows 10, you can check the detailed steps below.

How to Run a Program from CMD in Windows 10

You can only run the applications that are installed in Windows-created folders like Explorer in Command Prompt.

Step 1. Open Command Prompt in Windows 10

At first, you should open Command Prompt application on your Windows 10 computer. You can press Windows + R, type cmd, and press Enter to open normal Command Prompt or press Ctrl + Shift + Enter to open elevated Command Prompt on Windows 10.

Learn how to open a file/folder in Command Prompt (cmd) on Windows 10. Handbrake compress video. Step-by-step guide is included.

Step 2. Run Program from CMD on Windows 10

Next you can type start command in Command Prompt window, and press Enter to open the target application in CMD. Replace the 'program name' with the exact file's system name of the program but not its shortcut name. For instance: start explorer.

The file's system name of some common programs in Windows are as follows:

  • Command Prompt: cmd
  • File Explorer: explorer
  • Task Manager: taskmgr
  • Calculator: calc
  • Notepad: notepad
  • Paint: mspaint
  • Windows Media Player: wmplayer

How to Run EXE in CMD on Windows 10

You can follow the instructions below to run an exe file in Command Prompt.

Step 1. Access Command Prompt window

Torrent pdf expert. You can follow the same operation above to open Command Prompt in Windows 10.

Step 2. Navigate to the folder of the target program

Next you can type cd command in Command Prompt window, and press Enter to navigate to the folder that contains the target exe application. Replace 'file path' with the exact file path of the exe file.

You can find the target program folder and click the address bar at the top of File Explorer window to copy the path of the program folder and paste it after cd command. For example, cd C:Program FilesWindows Media Player.

Step 3. Run exe from CMD

After you are in the target program folder path, then you can type start after the selected file path in CMD, and press Enter to run the exe file in Command Prompt. Replace 'filename.exe' with the target program name, e.g. start wmplayer.exe.

Bottom Line

How To Change What Program Opens Files

Command Line Open File

Command Line Open File With Program

This post introduces how to run a program or exe file from CMD on Windows 10. Hope it helps.

If you need a free data recovery software to recover deleted/lost files from Windows 10 computer or other storage devices, you can try MiniTool Power Data Recovery.

MiniTool Power Data Recovery is a Windows data recovery program that allows you to recover data from PC, external hard drive HDD or SSD, USB drive, SD card, memory card, and more. It is very simple to use and 100% clean.





broken image