Windows

From DikapediaV2
Revision as of 14:38, 11 September 2024 by Ardika Sulistija (talk | contribs) (Created page with "====How to quickly generate a large file in Windows==== ---- Ref: https://tweaks.com/windows/62755/quickly-generate-large-test-files-in-windows/ Never download another 100mb test file or waste time searching for a large file. Sometimes you need a large file fast to test data transfers or disk performance. Windows includes a utility that allows you to quickly generate a file of any size instantly. Open an administrative level command prompt. Run the following comma...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

How to quickly generate a large file in Windows


Ref: https://tweaks.com/windows/62755/quickly-generate-large-test-files-in-windows/

Never download another 100mb test file or waste time searching for a large file. Sometimes you need a large file fast to test data transfers or disk performance. Windows includes a utility that allows you to quickly generate a file of any size instantly.

Open an administrative level command prompt.

Run the following command:

fsutil file createnew <file> <size in bytes>

For example, this command will create a 1GB file called 1gb.test on my desktop:

PS D:\> fsutil file createnew testfile 3221225472

The key is to input the size of the file in bytes so here are some common file sizes to save you from math:

1 MB = 1048576 bytes

100 MB = 104857600 bytes

1 GB = 1073741824 bytes

10 GB = 10737418240 bytes

100 GB =107374182400 bytes

1 TB = 1099511627776 bytes

10 TB =10995116277760 bytes


How to connect your C: drive to a remote server using RDP


  1. Start the RDP session
  2. Click on Show Options
  3. Select the Local Resources tab
  4. Under the Local devices and resources section, click more
  5. Expand the Drives tree and select Windows (C:) and click OK
  6. Click Connect
  7. Once you connect to the remote server, open Windows File Explorer and go to This PC. You should now see under the Redirected drives and folders your C: drive. for example.
  8. Now you can copy things from your C: drive to the remote server


How to mount a network drive locally


Open powershell and run:

net use * \\<full.Domain.com>\Home_Folder\asulistija /user:<domain>\asulistija