About 50 results
Open links in new tab
  1. 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?

  2. cmd - Create multiple files with Powershell? - Stack Overflow

    May 31, 2019 · 1 The following command in powershell will create multiple files (20) named Doc_.txt in the directory that the command is executed.

  3. Create a shortcut (.lnk file) using PowerShell - Stack Overflow

    Aug 14, 2024 · I want to create a shortcut with PowerShell for this executable: C:\\Program Files (x86)\\ColorPix\\ColorPix.exe How can this be done?

  4. How to create a file in the directory in PowerShell

    Dec 16, 2019 · How to create a file in the directory in PowerShell Asked 6 years, 1 month ago Modified 6 years, 1 month ago Viewed 2k times

  5. What is the equivalent of "touch" on windows PowerShell?

    For example, Windows PowerShell's CmdLet $> New-item can create more than one type of item — for example, PowerShell create both directories, and files — therefore; in PowerShell, you need to …

  6. Create file with date and time stamp in Powershell

    Feb 25, 2019 · Create file with date and time stamp in Powershell Asked 6 years, 11 months ago Modified 4 years, 9 months ago Viewed 22k times

  7. How do I overwrite a file using PowerShell? - Stack Overflow

    Jul 30, 2020 · New-Item -Path "C:\aws" -Name "script.ps1" -ItemType "file" -Value "text in file" I am trying to create a file using the above command, if the file already exists I have to replace it with new file, it …

  8. Create directory and file in same command using PowerShell

    Create directory and file in same command using PowerShell Asked 8 years, 11 months ago Modified 3 years, 2 months ago Viewed 23k times

  9. How to Generate File of a determinate Size in Windows?

    Apr 30, 2009 · This will create a file c:\temp\test.dat that consists of 42MB of nullbytes. You can of course just give byte count instead as well. (42MB = 42 * 1048576 for PowerShell).

  10. Using PowerShell to write a file in UTF-8 without the BOM

    Get-Content path/to/file.ext | out-file -encoding ASCII targetFile.ext For me this results in a utf-8 without bom file regardless of the source format.