Only English output from Windows command line tools [closed] - windows

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
My windows application tries to parse the command result of command line tools and it works well in English language pack.
However, I was wondering if when customer is using a different language pack so if the result of the command is in Japanese/Chinese/Korean, I think I should modify the parsing logic accordingly.
I think this approach doesn't seem to be a right direction.
Is there any way to force English output ?

First of all you are not talking to MS-DOS because this is its own operating system. Windows no longer is build on a DOS base, the last versions that did so were Windows 95 and 98 I think.
You are calling command line commands / executables of Windows and they can't be forced to use all English. Perhaps you can interpret the return code and detect an error this way. Some tools can be forced to return csv (wmic for example) but I don't think sc can be.
My suggestion is that you search SO for a solution how to call the CreateService from your programming language.

Related

Change %ComSpec% from cmd.exe to bash.exe [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
Is it safe to change %ComSpec% from cmd.exe to bash.exe(installed with git-for-windows)?
Are there any pitfalls while changing this enviroment variable?
I would imagine that a lot of existing apps and scripts assume that %ComSpec% points to an interpreter that is compatible with cmd.exe/command.com. And by compatible I mean the command line arguments it supports, the internal commands it supports and the way it parses and executes batch files.
Make your own variable if you need one for your own scripts or just make sure the path to bash.exe is in %Path%. Expecting other applications to cope with Bash is not going to work out well in the long run...

Can I use Bash on Ubuntu on Windows to practice Linux? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I am a newbie to Linux. May I ask if I can practice Linux in Bash on Ubuntu on Windows? Sorry for asking such a stupid question. But please help!
Thanks!
If you are using windows 10, there is now a bash shell built in that can be easily set up. Check out this tutorial to do so.
If you are not on windows 10, I would recommend Cygwin (download) as an alternate program to run bash scripts
I think you will manage to get some familiarity with working with a linux console and some of the commands, however there is certain functionality which doesn't quite work.
What I would suggest though is dual booting Linux next to Windows, to immerse yourself properly and get a clear picture of things from the start.

How to identify whether .exe file(Not Installed) is 64bit or 32bit using windows command Prompt [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
Suppose one .exe file is store in you desktop. I want to identify using command prompt whether it is 32bit or 64 Bit exe image. Please help How to identify?
There are a couple of methods:
dumpbin (SDK Tools)
looking for the first printable character after PE (L (0x14c) for 32 bits and p for 64 (0x8664)) by using a text editor
PExplorer (sysinternals tool)
file command (running inside Cygwin)

migrating any windows program to another pc (without installer GUI) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 7 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
I am looking for a way to remotely install a program to other computer units running Windows on the fly ,without the need of running the installer steps on each computer (next,next,finish...) all over again , .exe installers don't usually have an easy way to do this without using the GUI installer.
a solution that i came up with , running the installer on a single pc
and try to trace each file the installer adds (location,file names,registry files) using FileSystemWatcher then copy these files and send them to the desired hosts that need the program installed with the location of each file will this work ? is there any easier implementation
the problem with FileSystemWatcher that although it detectes which files have been added,edited or deleted its not capable to tell which process did the change ,Why would i need to know ?,other programs depends alot on files and will keep editing them so i need to isolate the installer process to easily study how its functioning and what files are added..
the only way that i know to overcome this problem is developing a file system filter driver...
please give me your opinion or some recommendations on which is the best way to do this ,sorry for my bad english .
Almost every modern installer has some way to perform a silent install. You may need to do some digging to find the answers, or ask the publisher. Try running the installer with /? as a command line switch and see what it tells you.

What is the Windows command-line analogue of the Mac command 'open'? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
Mac OS X has a neat little command-line function 'open'.
% open <file>
Does whatever a double-click on that file would do. But via the command-line (Terminal).
Does Windows have something like this? How do I get a non-executable file to be opened with the default program in the OS for that file-type?
I think it is start "<file>".
If it's a recognised file type, you can simply type the filename, and it will open it in your preferred application. For example,
my_favorite_porn.mp4
is not something you should do when your wife is nearby :-)
Note that, if it's a Windows application, it will auto-magically satrt in the background and your prompt will be returned to you. If it's something like a command-line application, it will run in the context of the current command window. If you want to start those in a separate window, you can use:
start cmdlineprog.exe
­­­­­­­­
explorer <file>

Resources