About 532,000 results
Open links in new tab
  1. How can I create an empty file at the command line in Windows?

    672 How can I create an empty file at the DOS/Windows command-line? I tried: copy nul > file.txt But it always displays that a file was copied. Is there another method in the standard cmd? It …

  2. Create a python file using cmd in windows - Stack Overflow

    Jul 16, 2015 · 0 Given that you are in the working directory, you can create Python file via Windows cmd using following command: echo print ("Hello") > myFile.py Echo prints the text …

  3. Create an empty file on the commandline in windows (like the …

    An easy way to replace the touch command on a windows command line like cmd would be: type nul > your_file.txt This will create 0 bytes in the your_file.txt file. This would also be a good …

  4. Is there a Windows equivalent to `touch` to create a new file in …

    Apr 9, 2019 · In Mac OS a new file can be created from the terminal by using the touch command. For example: $ touch hello_world.rb. Is there a way to create a new file of any type in cmd for …

  5. How do I execute cmd commands through a batch file?

    16 start cmd /k "your cmd command1" start cmd /k "your cmd command2" It works in Windows server2012 while I use these command in one batch file.

  6. windows - How to zip a file using cmd line? - Stack Overflow

    Aug 12, 2013 · 152 I want to zip a directory using the batch file command (Windows XP batch file). For example, if I want to unzip a file means I can use the jar -xf file.zip (java) bat file …

  7. How can I create a .txt file on CMD? - Stack Overflow

    Jun 18, 2017 · 7 Does someone knows how to create a file .txt on CMD?, I need like an order or steps to create it; I see that i need to write {echo "text"> "name".txt} but, i mean the content …

  8. How to prevent auto-closing of console after the execution of …

    What command can I put at the end of a batch file to prevent auto-closing of the console after the execution of the file?

  9. git - How to create a .gitignore file - Stack Overflow

    To create a .gitignore file, you just create a .txt file and change the extension as in the following: Then you have to change the name, writing the following line on the cmd:

  10. Keep CMD open after BAT file executes - Stack Overflow

    Jul 31, 2013 · I have a bat file like this: ipconfig That will print out the IP info to the screen, but before the user can read that info CMD closes itself. I believe that CMD assumes the script …