About 414,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 should be a …

  2. 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 has not order and …

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

    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 solution to use …

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

    Jun 12, 2009 · 314 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 doesn't matter. A …

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

    Jul 16, 2015 · 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 as an argument and > …

  6. Is there a Windows equivalent to `touch` to create a new file in cmd ...

    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 Windows?

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

  8. cmd - Windows command prompt log to a file - Stack Overflow

    Jan 24, 2013 · I'd like to easily save the log of the Windows command prompt into a file. Is there any alternative to select everything and right-click on copy?

  9. How do I create a shortcut via command-line in Windows?

    May 4, 2015 · To create a shortcut for warp-cli.exe, I based rojo's Powershell command and added WorkingDirectory, Arguments, IconLocation and minimized WindowStyle attribute to it.

  10. Create text file using echo in command prompt - Stack Overflow

    Jun 10, 2015 · I'm creating a hello_world.txt in the desktop using echo in command prompt and this is my input. echo hello world > C:\\Users\\user\\Desktop\\hello_world.txt The first code works, then I …