Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 39a66b2

Browse files
improve fast copy project
1 parent bac23a5 commit 39a66b2

File tree

3 files changed

+39
-67
lines changed

3 files changed

+39
-67
lines changed

‎Docs/README.md‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,6 @@ The `./Setup` folder contains the setup guides for the necessary tools involved
3636
- **VScode_Setup.md**
3737
Recommended setup for Visual Studio Code, including useful extensions and debugging configuration for PowerShell development.
3838

39-
### Usage
40-
41-
The `./Usage` folder contains usage guides for specific functions and scripts.
42-
43-
- **Move-ChildItemUp_Usage.md**
44-
- **Set-TouchFile_Usage.md**
45-
- **Start-FastCopy_Usage.md**
46-
4739
## How to Use
4840

4941
Browse the relevant markdown files for setup instructions, tips, and usage examples.

‎Docs/Usage/Start-FastCopy_Usage.md‎

Whitespace-only changes.

‎Project_Start-FastCopy/Start-FastCopy.ps1‎

Lines changed: 39 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,97 +1,77 @@
11
function Start-FastCopy {
22
<#
33
.SYNOPSIS
4-
5-
Initiates a batch copy operation using FastCopy, with per-folder transfer,
6-
speed control, verification, and optional delay.
4+
Initiates a batch copy operation using FastCopy, with per-folder transfer,
5+
speed control, verification, and optional delay.
76
87
.DESCRIPTION
98
10-
This function performs controlled copying of each subfolder from a specified
11-
source directory to a target directory using the external FastCopy utility.
9+
This function performs controlled copying of each subfolder from a specified
10+
source directory to a target directory using the external FastCopy utility.
1211
13-
Features include:
14-
- Transfer speed configuration ("full", "autoslow", "suspend", or custom 1–9)
15-
- Optional file verification after transfer
16-
- Dry run simulation with windowed FastCopy execution
17-
- Optional delay between subfolder copies for thermal throttling
18-
- Interactive confirmation via PowerShell's ShouldProcess
19-
- Setup FastCopy executable path in a config file instead of digging inside the code
12+
Features include:
13+
- Transfer speed configuration ("full", "autoslow", "suspend", or custom 1–9)
14+
- Optional file verification after transfer
15+
- Dry run simulation with windowed FastCopy execution
16+
- Optional delay between subfolder copies for thermal throttling
17+
- Interactive confirmation via PowerShell's ShouldProcess
18+
- Setup FastCopy executable path in a config file instead of digging inside the code
2019
2120
.PARAMETER sourceFolderPath
22-
23-
The root source directory. Each immediate subfolder will be copied individually.
24-
25-
Alias: SourceFolder
21+
The root source directory. Each immediate subfolder will be copied individually.
22+
Alias: SourceFolder
2623
2724
.PARAMETER targetFolderPath
28-
29-
The root destination directory. Each subfolder will be copied as a new folder here.
30-
31-
Alias: TargetFolder
25+
The root destination directory. Each subfolder will be copied as a new folder here.
26+
Alias: TargetFolder
3227
3328
.PARAMETER fastCopyPath
34-
35-
Optional override of the default and configured path to FastCopy.exe executable,
36-
useful when using portable FastCopy.exe.
29+
Optional override of the default and configured path to FastCopy.exe executable,
30+
useful when using portable FastCopy.exe.
3731
3832
.PARAMETER strMode
39-
40-
Speed mode to use. Acceptable values: full, autoslow, suspend, custom.
41-
When 'custom' is selected, -intSpeed must be specified.
42-
43-
Alias: Mode
33+
Speed mode to use. Acceptable values: full, autoslow, suspend, custom.
34+
When 'custom' is selected, -intSpeed must be specified.
35+
Alias: Mode
4436
4537
.PARAMETER intSpeed
46-
47-
Custom integer transfer speed (1–9). Only required when -strMode is 'custom'.
48-
49-
Alias: Speed
38+
Custom integer transfer speed (1–9). Only required when -strMode is 'custom'.
39+
Alias: Speed
5040
5141
.PARAMETER delaySeconds
52-
53-
Optional delay (in seconds) to wait between copying each subfolder.
54-
55-
Alias: Delay
42+
Optional delay (in seconds) to wait between copying each subfolder.
43+
Alias: Delay
5644
5745
.PARAMETER verifyDigit
58-
59-
1 to enable post-copy verification (default), 0 to disable.
60-
61-
Alias: Verify
46+
1 to enable post-copy verification (default), 0 to disable.
47+
Alias: Verify
6248
6349
.PARAMETER execDigit
64-
65-
1 to execute FastCopy (default), 0 to simulate using /no_exec.
66-
67-
Alias: Exec
50+
1 to execute FastCopy (default), 0 to simulate using /no_exec.
51+
Alias: Exec
6852
6953
.INPUTS
70-
71-
Accepts parameters for source and target folder paths, FastCopy executable path,
72-
mode, speed, delay, verification, and execution flags. For details, check the
73-
parameter descriptions.
54+
Accepts parameters for source and target folder paths, FastCopy executable path,
55+
mode, speed, delay, verification, and execution flags. For details, check the
56+
parameter descriptions.
7457
7558
.OUTPUTS
76-
77-
None. Writes progress and status messages to host.
59+
None. Writes progress and status messages to host.
7860
7961
.EXAMPLE
80-
81-
Start-FastCopy -SourceFolder "D:\Data" -TargetFolder "G:\Backup" `
82-
-Mode "custom" -Speed 5 -Delay 60 -Verify 1 -Exec 1
62+
Start-FastCopy -SourceFolder "D:\Data" -TargetFolder "G:\Backup" `
63+
-Mode "custom" -Speed 5 -Delay 60 -Verify 1 -Exec 1
8364
8465
.NOTES
66+
This function is the main function for the FastCopyTools module.
67+
Users should dot source this script to load the module and its dependencies.
8568
86-
This function is the main function for the FastCopyTools module.
87-
Users should dot source this script to load the module and its dependencies.
69+
Author: Jialiang Chang
70+
Version: 1.0
71+
Date: 2025年05月27日
8872
89-
Author: Jialiang Chang
90-
Version: 1.0
91-
Date: 2025年05月27日
9273
#>
9374

94-
9575
[CmdletBinding(
9676
SupportsShouldProcess = $true,
9777
ConfirmImpact = 'High',

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /