About 51 results
Open links in new tab
  1. command line - What does cmd /C mean? - Stack Overflow

    I can understand cmd but not cmd /C. I was trying to invoke a Java program from the current for which I use Runtime.getRuntime().exec("cmd /C java helloworld"); There arises my doubt.

  2. How do I run two commands in one line in Windows CMD?

    I want to run two commands in a Windows CMD console. In Linux I would do it like this touch thisfile ; ls -lstrh How is it done on Windows?

  3. Use "cmd /c" but hide the console window - Stack Overflow

    Aug 7, 2017 · I have a shortcut running this command when clicked: cmd /c "full path to my batch file". When I use it, it does what it is supposed to do, but in the process the ugly console window pops up. …

  4. How to run Command Prompt commands from C# - Stack Overflow

    Is there any way to run command prompt commands from within a C# application? If so how would I do the following: copy /b Image1.jpg + Archive.rar Image2.jpg This basically embeds an RAR file wit...

  5. Command prompt won't change directory to another drive

    As @nasreddine answered or you can use /d cd /d d:\Docs\Java For more help on the cd command use: C:\Documents and Settings\kenny>help cd Displays the name of or changes the current directory. …

  6. windows - What is `cmd /s` for? - Stack Overflow

    Mar 26, 2012 · The Windows command prompt (cmd.exe) has an optional /s parameter, which modifies the behavior of /c (run a particular command and then exit) or /k (run a particular command and then …

  7. How to open an elevated cmd using command line for Windows?

    Sep 30, 2013 · How do I open a elevated command prompt using command lines on a normal cmd? For example, I use runas /username:admin cmd but the cmd that was opened does not seem to be …

  8. Advantages of using cmd.exe /c over not using cmd at all

    Jan 21, 2016 · 1 Another benefit of using CMD.EXE is if you want to execute a built-in command. Many commands in CMD.EXE are not separate executables but are wholly implemented within CMD.EXE …

  9. How do I deal with quote characters when using cmd.exe

    Dec 10, 2008 · Help taken from output of: cmd /? If /C or /K is specified, then the remainder of the command line after the switch is processed as a command line, where the following logic is used to …

  10. BAT file: Open new cmd window and execute a command in there

    Jun 3, 2020 · start cmd /k echo Hello, World! start before "cmd" will open the application in a new window and "/K" will execute "echo Hello, World!" after the new cmd is up. You can also use the /C …