How To Split Files In Windows Quickly?

2022-09-18 07:47:55 By : Mr. Martin Gao

Transferring large files is a serious hassle, especially if you want to upload to the internet or use a removable drive with small storage.

It is possible to compress and split files using archive tools. However, you can’t individually use the split files without decompressing them to a single file.

So, in this article, we will provide different ways with which you can split files while making certain files such as audio, video, text, etc., readable even in split state.

Here are the methods you can use to split files in Windows:

Windows does not have a built-in utility or app to split a file. So, we have created a user-friendly custom PowerShell script for splitting and rejoining a file to help you out.

Since most people need to split a file according to a particular size, our custom script implements only this feature. You can use it to create split files with an input MB size.

If you want to split using any other sizes, you can change the code as we have directed in the comments (lines followed by #).

First, open Windows PowerShell as admin and enter the command Get-ExecutionPolicy -Scope CurrentUser. You can type powershell on Run and press Ctrl + Shift + Enter to run it as admin.

If it shows Restricted, Undefined or AllSigned, you can’t run the script. To change it, enter Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned.

If you want more information, please refer to our article on Running Scripts Is Disabled On This System.

After changing the execution policy, follow the instructions below:

You can also open PowerShell, change the directory to the Split.ps1 file’s location and enter .\Split.ps1 to run it.

First, ensure that PowerShell’s execution policy allows running scripts (see the above section). Then, follow the instructions below to join the files:

You can also run the script from PowerShell by entering .\Join.ps1 when on the file’s directory.

While Windows doesn’t have a native utility to split and join files, GNU systems like UNIX and Linux systems do. If you have installed git-bash on your computer, you can use the Linux commands- split to divide a file and cat to join them from its CLI.

Many developers have created open-source projects to allow some GNU utilities on Windows, such as GNU CoreUtils for Windows. These utilities only rely on Microsoft C-runtime (msvcrt.dll) to run some GNU commands. They also include the split and cat utilities.

Here are some necessary information on using these commands:

You can visit the GNU documentation on CoreUtils to learn more about how you can use these utilities.

The previous solutions provide limited options for splitting a file on Windows. They also use Command-line Interfaces, so you need to familiar with such interfaces if you want to customize ways to split a file.

So most people prefer using third-party tools as it is more convenient and provide more features. Some reliable apps you can use for this purpose are 7-Zip, HJSplit, GSplit, Total Commander, Fastest File Splitter and Joiner, and so on.

I'm an electronics engineer, avid writer, and tech-enthusiast specializing in troubleshooting computer-related issues. I enjoy reading both fiction and non-fiction in diverse genres. Apart from that, I also have a habit of trying out most new games but never completing them.

Hello dear! I want a script like above for windows with the some changes, I want to split a folder into some equal file and get back all of them into a folder without any error and problem. could you help me please!?

Could you please clarify some things for me? Do you want to split a folder or a file?

If it’s a file, the script in the article works perfectly in splitting the files into equal parts.

However, if you want to split a folder along with its contents, you can only compress and split the folder by using compression tools like WinRAR and 7-Zip.

Save my name, email, and website in this browser for the next time I comment.

Type above and press Enter to search. Press Esc to cancel.