Skip to content

A simple tool to open CMD in the current directory with a double-click.

License

Notifications You must be signed in to change notification settings

1564307973/cmd-here

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

16 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Language Options


CMD Launcher

A simple Windows tool that launches cmd.exe in the current directory where the executable resides. If run as administrator, it will start an elevated command prompt.

πŸš€ Features

  • Opens cmd.exe in the directory of the executable.
  • Automatically detects if running as administrator.
  • Launches an elevated command prompt if running as administrator.
  • Fully supports directory names with spaces.

🌟 Advantages

  • βœ… CMD starts in the EXE's directory, not affected by the default cmd.exe path.
  • βœ… Automatically elevates to administrator privileges, no manual confirmation needed.
  • βœ… Shorter and more efficient code, fewer API calls, greater stability.
  • βœ… Fully compatible with paths containing spaces (like C:\Program Files\MyApp\app.exe).

πŸ› οΈ How to Build

Requirements

  • Windows OS
  • MinGW or MSVC compiler

Build with MinGW

gcc cmd-here.c -o CMD-help.exe -mwindows

Build with MSVC

cl cmd-here.c /Fe:CMD-help.exe

πŸ“Œ Usage

Simply place the compiled CMD-help.exe in any directory and run it. The command prompt will open in that directory.

πŸ“œ License

This project is licensed under the MIT License. See the LICENSE file for details.

About

A simple tool to open CMD in the current directory with a double-click.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages