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

    673 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 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 …

  3. 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 …

  4. Quickly create large file on a Windows system - Stack Overflow

    Jun 12, 2009 · In the same vein as Quickly create a large file on a Linux system, I'd like to quickly create a large file on a Windows system. By large I'm thinking 5 GB. The content …

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

    338 The easiest way to create the .gitignore file in Windows Explorer is to create a new file named .gitignore.. This will skip the validation of having a file extension, since it actually has an empty …

  6. Create a new file in git bash - Stack Overflow

    46 I've got Git for Windows running, I'm not sure if it's supposed to function as a text editor though? I think I installed it with the Vim editor, but in a Git Bash shell how do I create a file, …

  7. c - how to create a file using windows API? - Stack Overflow

    I want to create a text file using windows API. I studied about HANDLE CreateFile( LPCTSTR lpFileName, DWORD dwDesiredAccess, DWORD dwShareMode, …

  8. Creating new file through Windows Powershell - Stack Overflow

    Aug 1, 2017 · I have googled for the below question, but could not find any answer. Can someone help me on this; What is the command to create a new file through Windows Powershell?

  9. Is there any method to create a YAML file via Microsoft cmd?

    Mar 13, 2022 · Thank you in advance. update: @tquadrat answer helps to create yamlfile successfully but on windows cmd, when you try to edit yamlfile via default notepad, that turns …

  10. How to create empty text file from a batch file? - Stack Overflow

    Oct 17, 2008 · DannySmurf's solution actually does create an empty file -- a newline goes to stdout, nothing goes to stderr (directed into the new file). But thanks for the +1 anyways