For example, in Bash, I can do this:
emacs foo.txt &
Is there any equivalent in Windows? I can't seem to figure out a way to do this with the windows version of emacs.
For example, in Bash, I can do this:
emacs foo.txt &
Is there any equivalent in Windows? I can't seem to figure out a way to do this with the windows version of emacs.
The command to launch programs from the command-line in Windows is "start"
You may want to use the MIN option to start a program minimized
I don't know if it will be sufficient, but try
It will not go into background but it will rather start separate cmd.exe window for the command.
HaHa,I successed ,To use sublime text3 as a server of markdown preview is my propose,after I closed sublime text's window,i won't work. I'd try many methods,at last it works. first,you should create a bat to start this program.
sencond,run this bat by schedule task.
add a trigger to run this bat according this schedule
add this bat as a operation to execute
This result is that it works to avoid to show sublime text window.and it work conflict with sublime text normally opened.
Maybe you had guessed ,I use
OmniMarkupPreviewer
plugin to preview markdown.I had fixed this bug(or not perfect feature) that it uses different view id every time.Depends on which version of Windows you're using.
In Vista you should be able to type the name of the exe in your path and have it live after the command prompt is closed.
How to Start a Program From a Command Prompt in Windows
Unfortunately I do not think that this is possible.
You can do this in a Windows Scripting Host script, with something like:
Where the "0" states that the resulting window should be hidden (for other options, see the documentation at http://msdn.microsoft.com/en-us/library/d5fk67ky(VS.85).aspx) and the "true" states that you want to wait for the command to complete before your script carries on.
It would be a simple exercise to wrap this up in a generic "run this command hidden" script that you could use from the command line.
If you have Microsoft's new new PowerShell installed, then there may be an easier way to do this (I've not worked with PowerShell yet).
If you are happy to have the window minimised then you can do that with the "start" command that other mention. Unfortunately the "/B" option (which sounds like it is what you want) is only for commands and it doesn't stop windowed applications appearing on screen.
Note: which ever of the above you use to you start a program with a hidden/minimised main window, there is nothing to stop it creating new windows that are visible, or bringing the main window up and into focus, once it is running.
sc create service
and run it has special chars on the file and parameters for example