I want to build an own interpreter using c programming and I want to call it in command prompt. How would i do this? I just want to start a command "display" which can display the contents of a file like type in cmd.
archie.herbias
-2
Newbie Poster
Recommended Answers
Jump to PostAssuming that the intended syntax is "'display', followed by one or more spaces, followed by the name of the file", you read a line of input, check whether the line starts with "display" followed by one or more spaces. If it doesn't, you display a "no such command" error. If …
Jump to PostWait, do you want to create your own command line program that you start from the command line and into which you can then enter the command "display bla.txt" (which is what I though you meant) or do you want to create a display command so that you can enter …
Jump to PostOh, you don't want to create your own interpreter. You want to let your program to be useable from the windows command line.
This doesn't really have anything to do with C, and more to do with the Windows Operating system.
All you need to do is put your .exe …
All 10 Replies
sepp2k
378
Practically a Master Poster
archie.herbias
-2
Newbie Poster
sepp2k
378
Practically a Master Poster
Hiroshe
499
Posting Whiz in Training
L7Sqr
227
Practically a Master Poster
archie.herbias
-2
Newbie Poster
archie.herbias
-2
Newbie Poster
archie.herbias
-2
Newbie Poster
Hiroshe
499
Posting Whiz in Training
archie.herbias
-2
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.