Puedo entender cmd
pero no cmd /c
. Intenté invocar un programa de Java de la corriente para la que uso Runtime.getRuntime().exec("cmd /C java helloworld");
Surge mi duda.¿Qué significa cmd/C?
145
A
Respuesta
85
/C
Realiza el comando especificado por la cadena y luego finaliza.
Puede obtener todos los conmutadores de línea de comando cmd escribiendo cmd /?
.
17
CMD.exe
Start a new CMD shell
Syntax
CMD [charset] [options] [My_Command]
Options
**/C Carries out My_Command and then
terminates**
De la ayuda.
184
La parte que le puede interesar es la parte /?
, que debería resolver la mayoría de las otras preguntas que tenga con la herramienta.
Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\>cmd /? Starts a new instance of the Windows XP command interpreter CMD [/A | /U] [/Q] [/D] [/E:ON | /E:OFF] [/F:ON | /F:OFF] [/V:ON | /V:OFF] [[/S] [/C | /K] string] /C Carries out the command specified by string and then terminates /K Carries out the command specified by string but remains /S Modifies the treatment of string after /C or /K (see below) /Q Turns echo off /D Disable execution of AutoRun commands from registry (see below) /A Causes the output of internal commands to a pipe or file to be ANSI /U Causes the output of internal commands to a pipe or file to be Unicode /T:fg Sets the foreground/background colors (see COLOR /? for more info) /E:ON Enable command extensions (see below) /E:OFF Disable command extensions (see below) /F:ON Enable file and directory name completion characters (see below) /F:OFF Disable file and directory name completion characters (see below) /V:ON Enable delayed environment variable expansion using ! as the delimiter. For example, /V:ON would allow !var! to expand the variable var at execution time. The var syntax expands variables at input time, which is quite a different thing when inside of a FOR loop. /V:OFF Disable delayed environment expansion.
Cuestiones relacionadas
- 1. ¿Qué significa Field.Index.NOT_ANALYZED_NO_NORMS significa
- 2. ¿Qué significa ('../') significa?
- 3. ¿Qué significa "babosa" significa
- 4. ¿qué significa "$ &" significa en Ruby
- 5. ¿Qué significa "ruptura BC" significa?
- 6. ¿Qué significa '??' significa en C#?
- 7. ¿Qué significa xmlns = "" significa exactamente
- 8. ¿Qué significa "?" significa en Java?
- 9. ¿Qué significa "==="?
- 10. ¿Qué significa /([^.]*)\.(.*)/?
- 11. ¿Qué significa = *?
- 12. ¿Qué significa "\\. \", "\ ?? \", "\\? \", "\\"?
- 13. ¿Qué significa || =?
- 14. ¿Qué significa "donde T: algún valor" significa?
- 15. ¿Qué significa "rc" significa en archivos punto
- 16. ¿Qué significa '$?' significa en scripts bash?
- 17. ¿Qué significa "1"? significa en Perl?
- 18. ¿Qué significa "% .6d" significa en printf
- 19. ¿Qué significa "escalares filtrados: 1" significa?
- 20. ¿Qué significa @! significa en un De declaración
- 21. ¿Qué nombres de directorios '.' y '..' significa y ¿qué significa faDirectory?
- 22. ¿Qué significa ON [PRIMARY]?
- 23. ¿Qué significa 'siembra'?
- 24. ¿Qué significa vectorización?
- 25. ¿Qué significa SCM?
- 26. ¿Qué significa threadsafe?
- 27. ¿Qué significa WAIT_FOR_CONCURRENT_GC bloqueado?
- 28. ¿Qué significa ': ..' en Haskell?
- 29. ¿Qué significa [object Object]?
- 30. Ruby: ¿Qué significa $ 1?
también hay una orden de "pausa" la ventana cmd después de la salida: "nombre_archivo cmd/c y pausa" es poco diferente de cmd/k – JerryGoyal
lo que si hay una orden dada es una especie de servidor que se inicia Es propio bucle? ¿Deberíamos usar/C o/K? –
Mientras se ejecuta el comando en C# a través de 'Proceso', ¿se usa/C obligatorio en el sistema operativo Windows 7 o Windows Server 2008 R2? –