What is the shell exactly when using Cmder on Windows? - windows

I've just started using Cmder on Windows 7 and I understand that is a console emulator for Windows which gives a better experience than using cmd. However as I understand it the emulator needs to run a shell in order to communicate the user commands to the OS, so on windows what is the shell here? is CMD the default shell for Windows?
Would appreciate just understanding how these tools are connected.

Related

Use Windows Terminal in place of cmd when a command line exe is executed

I have a couple command line apps (launch4j + java.exe) I use.
I'd like to run them on Windows Terminal instead of cmd.exe. But, even after installing Windows Terminal, when I execute the launch4j exe, it still runs on cmd.exe.
If I run wt myapp.exe -oneinput it works, but I'd like to run myapp.exe directly.
Is there any setting I must do so that Windows Terminal is used in place of cmd.exe?
The Windows Terminal team are working to enable Windows Terminal to become the default command-line user experience on Windows.
Stay tuned to the Windows CommandLine Blog for news and updates on up-coming features.

Changing the commandline prompt of Anaconda

Instead of the commandline prompt provided by MS Windows, I want to use Bash
I have done enough websearch but it did not give me any exact solution
What worked for me with similar case is MobaXterm terminal for Windows, you just need to enable option "use Windows PATH" from it's Terminal Settings and ensure that you have Anaconda in your Windows PATH.
With the above approach you can run all conda commands from a local Bash Terminal on Windows with Basic Cygwin commands.
I hope this is similar with what you are looking for.

How to use native windows commands in VsCode`?

I have installed a command prompt shell in Visual Code and I have a compiler that I usually run from the windows cmd. I'm wondering how can I make the windows commands (and my own) that works in cmd run in the Visual Code Command prompt?

How can I suspend/resume a running program from command line in Windows?

I am trying to pause a running program using an OS command script in Windows 7.
After searching StackOverflow/Search-Engines, it seems most suggestions involve the use of sysinternals process explorer in which programs can easily be suspended and resumed using the mouse. However, I would like to use the command line to do the same and cannot figure out how.
Can anyone tell me how to pause/resume programs from the command line?
Note. I am using Windows 7 and MinGW.
Check out SysInternals PsSuspend:
https://learn.microsoft.com/en-us/sysinternals/downloads/pssuspend
To suspend, use this.
PsSuspend ProcessImageName.exe
To resume the process, use this command.
PsSuspend -r ProcessImageName.exe

Command line does not execute my parameters

I have created a batch file to run an application automatically but it seems my CMD does not run it. I typed this (using notepad as an example):
CMD /C "C:\notepad2\notepad2.exe"
If I run this from Windows Vista it worked. But running this from Windows Server 2008 (64-bit) it just doesn't work. I even try using that line from the Run menu but no go.
What do I do? My aim is to run a scheduled task that runs the batch file every now and then.
Stupid question, but does the program you're trying to run actually exist on the Server 2k8 machine?
There are no differences in cmd between Vista and Server 2k8 whatsoever.
Besides, why do you need to execute it via cmd? Can't you just run the application directly? Using cmd /c is only necessary for shell built-ins, such as dir or start.
Also remember that there is no NTVDM on 64-bit Windows—you can't run 16-bit programs. I doubt one would still use them nowadays but it may be the only thing I can think of why it doesn't work in 64-bit.

Resources