- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to create a dummy file of any size with PowerShell?
To create any dummy file of having any size with PowerShell, we can use the below command.
Example
$f = new-object System.IO.FileStream c:\temp\test.dat, Create, ReadWrite $f.SetLength(50MB) $f.Close()
The above command will create 50MB of Test.dat dummy file in the C:\temp. Such files are used for testing purposes.
- Related Articles
- How to open any file with its default application with PowerShell?
- How to create a temporary file using PowerShell?
- How to create a dummy variable in R?
- How to create a CSV file manually in PowerShell?
- How to create file of particular size in Python?
- How to create new alias with PowerShell?
- How to create a file upload button with HTML?
- How to create a boxplot with outliers of larger size in R?
- How to get data of any size from the EEPROM with Arduino?
- How to convert JSON file to CSV file using PowerShell?
- How to create a Scheduled task with a task scheduler using PowerShell?
- How to create a Dictionary in PowerShell?
- How to install MSI file using batch file in PowerShell?
- How to create a JAR file?
- How to start any program using PowerShell?

Advertisements