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 9 years ago.
Improve this question
When I execute the at command:
at 10:10 mplay32.exe /play c:\m1.mp3
No media play window is displayed on my screen, but I can hear the music playing.
When I execute the command in XP:
mplay32.exe /play c:\m1.mp3
I can hear the music playing but there is a media play window displayed on my screen, how can I hide this window? How to let media play not to be displayed on my screen?
How can I do it in cmd not in the form of at sometime?
There doesn't seem to be a way to accomplish this using only the default tools of Windows.
You can either switch to a player that supports some sort of silent mode (regarding the GUI, not the sound) or compile this snippet I just wrote for you.
To play your music you would then simply do:
hstart mplay32.exe /play c:\m1.mp3
wv_player is a command line (and gui) media player that can play an audio file with no interface.
http://www.webxpace.net/
Use this command to start the player minimized:
start /min mplay32.exe /play c:\m1.mp3
It's not actually hidden - an icon will appear in the taskbar - but it won't interfere with your workflow if you launch it asynchronously.
If you want the player to be completely hidden it needs to be launched with the ShowWindow flag in STARTUPINFO set to SW_HIDE. I'm not aware of an existing command-line utility that does this but you could write one yourself very easily.
Or you could use a different application as suggested by the other respondent.
Related
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 1 year ago.
Improve this question
I don't want the window title name of the command line to change. When i make shortcut or open it in different location, window title name of cmd is changing. How can i stop it?
Thanks.
In short: you can't. CMD.EXE internally calls SetConsoleTitle (or some equivalent), and there isn't an option to stop it from doing so.
What you can do is manually reset the title after each command (for example when you run a batch file with multiple commands inside and want to end up with some specific title). Use the title command to do so from within a batch file or from the command prompt interactively.
(There are also more involved options, but they all have quirks.)
I think some console alteratives (like Windows Terminal or ConEmu) let specify that the title should not change, but I'm not sure, you'll have to try.
Maybe clarify your question with what you are really trying to achieve, or why the changing title is an issue for you.
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 1 year ago.
Improve this question
I tried to run a program called MSIAfterburner with no windows
But nothing works
I tried
Quiet.exe
Nircmd.exe
I tried some python scripts and JavaScript & Powershell and VBS. And every time it was showing the window of the program
Can somebody help me?
Neither quiet.exe nor nircmd.exe come with windows by default. I believe this MSIAfterburner program you are referring to is a graphics overclocking utility, which is a windows application, as opposed to a console application.
Therefore, if you for whatever reason want to run it without a window, the easiest way I can think of would be to launch the program in a different session using psexec -i 0 (run it as admin) from here.
If you want to run it without a window without admin privileges, the best I can think of would be to use the winapi ShowWindow(handle_to_the_app_main_window, SW_HIDE).
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
I cant figure out why, but my vim74 on Windows 8 wont maximize. In fact it is very limited to a certain size.
This is the max size and I don't know how to make it bigger.
Also when I input a command (e.g. :q) character that I didn't input comes up
like :<-[1 q when I do :q
Thank you in advance
Based on the screenshot (and missing menus), it looks like you're using Vim in the Windows console (cmd.exe), which cannot be maximized in the usual way. You have the following options:
Use GVIM; it offers more (visual) features, and the biggest disadvantage, more clumsy shell integration, isn't that important on Windows, anyway.
Use the Windows console menu (right mouse button on the top-left icon > Defaults > /Layout\ > Windows Size) to resize it.
Inside Vim, you can influence the size via
:set lines=40 columns=120
and the console will resize accordingly.
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
This is a pretty small thing, but I have been getting into more and more windows coding, and recently began finding myself in a terminal (msysgit, powershell). However, something that bugs the CRAP out of me is that there is no full screen modes, and they have to be resized
So my question:
For any windows 8 users, are terminals (msysgit, powershell, cmd) maximable / customizable at all?
I HAVE used console2 (http://www.hanselman.com/blog/Console2ABetterWindowsCommandPrompt.aspx), but while it is resizable, it does not maximize.I am weighing if whether my next computer will be a mac or windows, and this info will be useful in making that decision. I am getting tired of crazy work-arounds to get simple things changed in windows.
Windows doesn't really have "terminal" windows (except for those provided by a third party). Windows has a console subsystem which PowerShell, cmd.exe and any other console program you write, run in. The Windows console subsystem is old, hasn't changed much and is definitely showing its age. While there is a maximize button on every console window, as you have no doubt noticed, it doesn't maximize the window to full screen.
For script editing, I would use PowerShell_ISE or Visual Studio with the PowerShell Tools for VS add-in. To enable a number of BASH-like line editing features in PowerShell, you should check out PSReadLine on GitHub. It makes using PowerShell much nicer.
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>