C program to open notepad
Accept Solution Reject Solution. Posted 2-Mar am super. Eng Tahlil 2-Mar am. I used to do this so many years ago - but it was in a DOS system. Checking to see if all is still the same, I refer you to winapi - how can I run an external program In C?
Did you consider the spawnl group? It allows for arguments. I will try. Posted 2-Mar am CHill Add your solution here. OK Paste as. Treat my content as plain text, not as HTML.
Existing Members Sign in to your account. This email is in use. Do you need your password? Submit your solution! When answering a question please: Read the question carefully. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem.
When the run window appears click on it, to open the run window. Notepad can also be opened by right clicking on the desktop and choosing New Text document form there. Save the written program in the directory in which you have installed C language Compiler. To compile the program open command prompt. At the command prompt use cd command to change directory and move to the location where the program is saved.
When you are at the location where the program is saved you are ready to execute the program. To compile the saved program and get executable code type the following command at the command prompt. Please Sign up or sign in to vote. See more: C. Hello, I am working with windows platform, i want to run notepad file with the help of C program.
What i tried is here. Copy Code. Posted Jul am radix3. Add a Solution. Top Rated Most Recent. Accept Solution Reject Solution. A simple executable like:.
Posted Jul am Aescleal. Nish Nishant Jul am. Reason for my vote of 5 Worth 5. Not sure why someone 4d this. I am using Turbo C and i tried the above code it's not working. I even wrote the full path of notepad but alas no success.
Posted Jul am Christian Graus. Sir i didn't get you. I tried your code on my PC and it works properly.
0コメント