What is the code within the choice command [closed] - windows

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
That title may be a bit confusing, so let me elaborate. I want to know what the code is behind the choice command. There is not really much reason other than curiosity and the fact that it might help me one day. I've searched everywhere but can't find it.
I don't know much about open source projects and the like, but may it be because Windows doesn't want people to know (or for it to be easily accessible)?
Any information will be appreciated.

Windows is not open source. The code for any Windows command-line utilities is not routinely released. This has nothing to do with Microsoft especially not wanting you to know how choice in particular is implemented!
That said, it looks to be very straight-forward. Implementation would be a dozen lines or so at most.. what part of it is giving you trouble?

As Mahmoud Al-Qudsi pointed out, Windows is not open source. FreeDOS however is, and the choice command is available here.

Related

Creating a setup script [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I don't even know how to ask this question, therefore I couldn't find anything that might help me.
I want to write some sort of script that downloads softwares, installs softwares(like eclipse), drivers, edit files(like configuration files) and more, so that a when a new developer comes to our company he will launch the script and he is set with all of our configurations.
What is the best way of doing it?
I am familiar with python, working on windows
Thank you very much!
I would say there a several options, but none of them are cheap:
Switch to VMs and setup a default VM for developers with everything they need one time and distribute the snapshot to new employees. If something changes, change the snapshot and distribute it again.
There are some options to do this on real hardware, but I have never done this and according to this https://superuser.com/questions/716494/creating-a-snapshot-of-a-windows-7-system it is not a common way to go
Script everything by hand, make a lot of mistakes and take a lot of time ;) A python script can certainly do a lot of things, also can powershell or batch files. But it is a long way to go and it is very time consuming when a operating system updates or all of the sudden some installers do not support unintended installations anymore. I used to automate some installations in my job when I was a student and it really took some time and effort to maintain this all.
After all, this is more of a superuser.com question than stackoverflow, but maybe I could help anyhow.

Understanding Windows application footprint [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Just wondering if anyone could point me in the right direction for documentations that specifies what a Window application's file footprint is?
More specifically, I am looking for a documentation that specifies what registry files (and which hive) and files/directories must be created when an application is installed.
#Raymond Chen is totally right, however, there are some pretty common places to put things in the registry\file system based on the programs needs. I.E. Does it start on login or start up? It really depends on how the program interfaces with Windows. Hopefully that points you in the right direction.

Best way to get feedback on open sourced project [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
What is the best way to open source a project I would like help on? I'm aware of source forge, but is there some way to advertise "I'm a newbie looking to improve my coding skills, so here is a working project I'm uploading in hopes of learning how to code better?" I currently have a Cocoa program I wrote that works fine, but I'm certain there are inefficiencies and leaks in my code that I will never know about unless someone with more experience points them out.
Judging from my experience, if your project is considered to be useful, people will start submitting bug reports and patches by themselves. If that happens, get in touch with your submitters, offer them write access to the code base, distribute responsibility.
That way, you'll learn a lot about coding and, more importantly, team management.
That having said, why don't you participate in existing projects in order to improve your coding skills? Reading other people's code will boost your capabilities far more than just writing your own stuff.

Projects handler program [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 3 years ago.
Improve this question
In our company we need a project handler so we decided to write our own.
We use CMake and bazaar and we still don't know if to store the informations of the
projects in XML format or in a database.
We are locked at this point: we would like to use as less languages/tools as possible
but we cannot find a way to interface CMake with XML files or databases.
An idea could be Python but it would be really annoying to use a new language just for an interface. We've seen that there's a Python framework (Waf) but we have already used CMake for all our projects and it would take a lot of time to convert all.
We work with Ubuntu and Windows.
Suggestions ?
thanks in advance
Rather than make your own tool, use an off-the-shelf product like something from the Jira suite, or BuildMaster. Many of these have great integration with most build software and don't require you to write and maintain your own stack just to manage projects.
Focus your developer time on solving your business problems, not on reinventing the wheel. Their time is MUCH more valuable than the cost of using a ready-made solution.

Is there a performance hit when running obfuscated code? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
All,
I am proposing the addition of code obfuscation to the standard build process at my organization. One of the questions being asked is whether there is a performance hit to running obfuscated code vs. running unobfuscated code.
What is your experience? Have you seen a reduction in performance at runtime because you obfuscated your Java or C# code?
Thanks,
VI
It depends on how you are obfuscating it. If you use one of the tools that replaces all the names of objets and functions, then there should be no change at all. The compilers don't care what you call anything, whether it's useful to a developer (fetchProjects()) or just (funcA()).
You may wish to read about my over-obfuscation experiments: Impact of Flow Obfuscation on Performance.

Resources