Creating shortcut for a c application

  • Thread starter Thread starter kthouz
  • Start date Start date
  • Tags Tags
    Application
Click For Summary
It is possible to run C programs without displaying the code by using the executable (.exe) files created by the compiler, typically found in the IDE's designated folder. Users can create shortcuts to these executable files for easier access. To create a shortcut, one can right-click on the Start menu, create a new folder, and then add a shortcut to the .exe file. If the program has an associated icon, it will automatically be used; otherwise, users can manually change the icon by selecting an .ico file. Additionally, shortcuts can be created for batch (.BAT) files, allowing for the execution of multiple programs or instances simultaneously by using the "start" command.
kthouz
Messages
188
Reaction score
0
Hi!
I'm now learning to write programs with c codes. But always when we run those programs we firstly go throught their algorithm's codes (i mean IDE screen). So is it possible to run a program without seeing those codes? I mean go directly to the DOS. Or is it possible to create "shortcut" for those programs. if yes just tell me how?
Thank you!
 
Technology news on Phys.org
Yes. The compiler creates an exe and stores it on the hard disk. If you are using Turbo C, it will be in C:\program files\TC\bin , perhaps. For other IDEs it may be in the "projects" folder.
 
changing icon for a c progrm

Google_Spider said:
Yes. The compiler creates an exe and stores it on the hard disk. If you are using Turbo C, it will be in C:\program files\TC\bin , perhaps. For other IDEs it may be in the "projects" folder.
Thanks. i found them.
And now am tryin to change their icon using windows like i do for any other program(right click on the item>properties>change icon) but it can't work.
Is there anything else i need to know?
 
kthouz said:
Thanks. i found them.
And now am tryin to change their icon using windows like i do for any other program(right click on the item>properties>change icon) but it can't work.
Is there anything else i need to know?

Writing good code is more important than making eye-candy icons.:wink:
Actually I don't know how to do it :-p
 
Click on start, right click on all programs. Create a new folder. Double click on the new folder to open it. Right click on folder window and select new, shortcut. Search for your program (the .exe) file. If the program has an icon in it, it will automatically get picked up. If there are parameters, add them after the name of the program when creating the shortcut. Click on next and change the name if you want.

If you didn't get an icon for the shortcut, right click on the shortcut, and click on change icon, and again, fine the .ico file for your program. Windows will start off with the generic set of icons from some .DLL file. You can pick up icons from .DLL files, .EXE files, or .ICO files.

Note that this same process can also be used to create shortcuts to .BAT file to run command scripts. For Windows XP or Vista batch files, prefxing a program path and name with start, such as

start \myfolder\myprogram1.exe
start \myfolder\myprogram2.exe

allows multiple programs or multiple instances of a program to be launched with a single shortcut to a batch file.
 
Last edited:
Learn If you want to write code for Python Machine learning, AI Statistics/data analysis Scientific research Web application servers Some microcontrollers JavaScript/Node JS/TypeScript Web sites Web application servers C# Games (Unity) Consumer applications (Windows) Business applications C++ Games (Unreal Engine) Operating systems, device drivers Microcontrollers/embedded systems Consumer applications (Linux) Some more tips: Do not learn C++ (or any other dialect of C) as a...

Similar threads

  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 17 ·
Replies
17
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 133 ·
5
Replies
133
Views
10K
  • · Replies 1 ·
Replies
1
Views
609
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 22 ·
Replies
22
Views
2K
  • · Replies 16 ·
Replies
16
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K