Downloads:

9,353

Downloads of v 3.30:

443

Last Update:

09 Mar 2017

Package Maintainer(s):

Software Author(s):

  • SHIROUZU Hiroaki

Tags:

fastcopy copy delete explorer shell notsilent admin

FastCopy (install)

This is not the latest version of FastCopy (install) available.

3.30 | Updated: 09 Mar 2017

Downloads:

9,353

Downloads of v 3.30:

443

Maintainer(s):

Software Author(s):

  • SHIROUZU Hiroaki

FastCopy (install) 3.30

This is not the latest version of FastCopy (install) available.

All Checks are Passing

2 Passing Test


Validation Testing Passed


Verification Testing Passed

Details

To install FastCopy (install), run the following command from the command line or from PowerShell:

>

To upgrade FastCopy (install), run the following command from the command line or from PowerShell:

>

To uninstall FastCopy (install), run the following command from the command line or from PowerShell:

>

NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://chocolatey.org/api/v2. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Enter your internal repository url

(this should look similar to https://chocolatey.org/api/v2)

4. Choose your deployment method:


choco upgrade fastcopy.install -y --source="'STEP 3 URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade fastcopy.install -y --source="'STEP 3 URL'" 
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Ensure fastcopy.install installed
  win_chocolatey:
    name: fastcopy.install
    state: present
    version: 3.30
    source: STEP 3 URL

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.

Coming early 2020! Central Managment Reporting available now! More information...


chocolatey_package 'fastcopy.install' do
  action    :install
  version  '3.30'
  source   'STEP 3 URL'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


Chocolatey::Ensure-Package
(
    Name: fastcopy.install,
    Version: 3.30,
    Source: STEP 3 URL
);

Requires Otter Chocolatey Extension. See docs at https://inedo.com/den/otter/chocolatey.


cChocoPackageInstaller fastcopy.install
{
   Name     = 'fastcopy.install'
   Ensure   = 'Present'
   Version  = '3.30'
   Source   = 'STEP 3 URL'
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'fastcopy.install':
  provider => 'chocolatey',
  ensure   => '3.30',
  source   => 'STEP 3 URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


salt '*' chocolatey.install fastcopy.install version="3.30" source="STEP 3 URL"

See docs at https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.chocolatey.html.

5. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

Private CDN cached downloads available for licensed customers. Never experience 404 breakages again! Learn more...

This package is likely a meta/virtual (*) or an installer (*.install) or portable (*.portable) application package.

  • Meta/virtual (*) - has a dependency on the *.install or the *.portable package - it is provided for discoverability and for other packages to take a dependency on.
  • Portable (*.portable/*.commandline (deprecated naming convention)/*.tool (deprecated naming convention)) - usually zips or archives that require no administrative access to install.
  • Install (*.install/*.app (deprecated naming convention)) - uses native installers, usually requires administrative access to install.

Learn more about chocolatey's distinction of installed versus portable apps and/or learn about this kind of package.

This package was approved by moderator AdmiringWorm on 13 Mar 2017.

Description

FastCopy is the Fastest Copy/Delete Software on Windows.

It supports UNICODE and over MAX_PATH (260 characters) file pathnames.

It automatically selects different methods depending on whether the source and destination directories are on the same or different drive.

  • Different drive: Reading and writing are processed respectively in parallel by separate threads.
  • Same drive: Reading is processed until the buffer fills. When the buffer is filled, writing is started and processed in bulk.

Reading/Writing is processed with no OS cache so other applications do not become slow.

It can achieve reading/writing performance that is close to the device limit.

Include/Exclude filter (UNIX Wildcard style) can be specified. In ver3.0 or later, relative paths can be specified.

It runs fast and does not hog resources, because MFC is not used. (Designed using Win32 API and C Runtime only)

Notes

  • This package will install the FastCopy shell extension.
  • Install and uninstall of this package does have a few windows flash open and close. I.E. This package is not silent, but it is no-touch.
  • Upon uninstall, a .dll file remains locked by explorer and will not be deleted until a reboot.

Option

  • NoSubs - The FastCopy Explorer shell extension choices will not appear in a submenu (as is the default) but rather on the main context menu.

This parameter can be requested on installation of the package like so:
choco install fastcopy.install -params '"/NoSubs"'


tools\chocolateyInstall.ahk
; First, install
Run, %1%, , Min
winWait, FastCopy Setup
ControlClick, Start, FastCopy Setup
WinWait, Install, Starting
ControlClick, OK, Install
WinWait, Install, The setup was completed
ControlClick, Launch, Install

; Next, add/update shell extensions
WinWait, FastCopy ver
WinMenuSelectItem, FastCopy ver, ,Option,Extensions,Shell Extension
WinWait, Shell Extension Settings
ControlGetText, ButtonText, Button1, Shell Extension Settings
Param = %2%
if (ButtonText = "Install" AND Param = "") {
   ; Dont change previous shell extension submenu choice if 
   ;   updating or if the install-user requests 'NoSubs'.
   ControlClick, Button7, Shell Extension Settings
   ControlClick, Button10, Shell Extension Settings
}
ControlClick, %ButtonText%, Shell Extension Settings
WinClose Shell Extension Settings
WinClose FastCopy ver
tools\chocolateyInstall.ps1
$url32       ='https://ipmsg.org/archive/FastCopy330.zip'
$checkSum32  = 'c67bd82f9847d759b1fe114934ca724ead7f49a115764dff5473437a2bf5e926'
$url64       ='https://ipmsg.org/archive/FastCopy330_x64.zip'
$checkSum64  = 'b66b8987d52d3d1a2cfad881f435d8d6cef48a9b72295ab2b2447b7550eec842'

$DownloadArgs = @{
   PackageName         = $env:ChocolateyPackageName
   FileFullPath        = "$env:TEMP\$env:ChocolateyPackageName\Download.zip"
   Url                 = $url32
   Url64bit            = $url64
   Checksum            = $checkSum32
   Checksum64          = $checkSum64
   ChecksumType        = 'sha256'
   GetOriginalFilename = $true
}

# Download zip
$ZipPath = Get-ChocolateyWebFile @DownloadArgs
 
# Extract zip
Get-ChocolateyUnzip $ZipPath (Split-Path $ZipPath)

$UserArguments = @{}

# Parse the packageParameters using good old regular expression
if ($env:chocolateyPackageParameters) {
   $match_pattern = "\/(?<option>([a-zA-Z]+)):(?<value>([`"'])?([a-zA-Z0-9- _\\:\.]+)([`"'])?)|\/(?<option>([a-zA-Z]+))"
   $option_name = 'option'
   $value_name = 'value'
 
   if ($env:chocolateyPackageParameters -match $match_pattern ){
      $results = $env:chocolateyPackageParameters | Select-String $match_pattern -AllMatches
      $results.matches | % {
         $UserArguments.Add(
            $_.Groups[$option_name].Value.Trim(),
            $_.Groups[$value_name].Value.Trim()
         )
      }
      if ($UserArguments.ContainsKey('NoSubs')) {
         Write-Host 'You want FastMenu options directly in context menus (not in submenus).'
         $NoSubs = 'NoSubs'
      }
   } else { Throw 'Package Parameters were found but were invalid (REGEX Failure)' }
} else { Write-Debug 'No Package Parameters Passed in' }

# Win7 complains the installer didn't run correctly.  This will prevent that.
Set-Variable __COMPAT_LAYER=!Vista

& AutoHotKey $(Join-Path $env:ChocolateyPackageFolder 'tools\chocolateyInstall.ahk') $(Join-Path (Split-Path $ZipPath) 'setup.exe') $NoSubs


tools\chocolateyUninstall.ahk
; Uninstall
Run, %1%, , Min, setupID
WinWait, FastCopy Setup
ControlClick, 2. Uninstall, FastCopy Setup
ControlClick, Start, FastCopy Setup
WinWait, UnInstall, Starting
ControlClick, OK, UnInstall
WinWait, msg, shell extention
ControlClick, OK, msg

; and close the windows containing what the user is supposed to manually delete
WinWait, , %ProgramFiles%\FastCopy, 0
WinClose, , %ProgramFiles%\FastCopy
WinWait, , %APPDATA%\FastCopy, 0
WinClose, , %APPDATA%\FastCopy

Process, WaitClose, setupID, 2
tools\chocolateyUninstall.ps1
# fastcopy.install really can't be uninstalled without AutoHotKey as a prereq.

$ProgDir = Join-Path $env:ProgramFiles 'FastCopy'

# Win7 complains the installer didn't run correctly.  This will prevent that.
Set-Variable __COMPAT_LAYER=!Vista

& AutoHotkey.exe $(Join-Path $env:ChocolateyPackageFolder 'tools\chocolateyUninstall.ahk') $(Join-Path $ProgDir 'setup.exe') | Out-Null

# Uninstall removes desktop/Start Menu icons, but it does not remove the installed program and folder.
if (Test-Path ($ProgDir)) {
   # Test if Explorer locked the extension dll.  
   $dll = 'FastExt1.dll'
   If (Get-ProcessorBits -eq '64') { $dll = 'FastEx64.dll' }
   $Lock = Get-Process | foreach { $processVar = $_; $_.Modules | foreach { if ($_.FileName -like "*$dll") { $processVar.Name }}}

   # Register a lock for deletion.
   If ($Lock) {
      Write-Host "The FastCopy file extension is locked by $Lock. It will be deleted on next reboot." -ForegroundColor Cyan
      # Function from: https://gallery.technet.microsoft.com/scriptcenter/Register-FileToDelete-0cbb00bb
      #   with reference to "system.linq" (requiring .net 3.5+) removed as it is not needed here.
      Function Register-FileToDelete {
         [cmdletbinding(SupportsShouldProcess = $True )]
         Param (
            [parameter(ValueFromPipeline=$True, ValueFromPipelineByPropertyName=$True)]
            [Alias('FullName','File','Folder')]
            $Source = 'C:\users\Administrator\desktop\test.txt'    
         )
         Begin {
            Try { $null = [File] } 
            Catch { 
               Write-Verbose 'Compiling code to create type'   
               Add-Type @'
               using System;
               using System.Collections.Generic;
               using System.Text;
               using System.Runtime.InteropServices;
        
               public class Posh
               {
                   public enum MoveFileFlags
                   {
                       MOVEFILE_REPLACE_EXISTING           = 0x00000001,
                       MOVEFILE_COPY_ALLOWED               = 0x00000002,
                       MOVEFILE_DELAY_UNTIL_REBOOT         = 0x00000004,
                       MOVEFILE_WRITE_THROUGH              = 0x00000008,
                       MOVEFILE_CREATE_HARDLINK            = 0x00000010,
                       MOVEFILE_FAIL_IF_NOT_TRACKABLE      = 0x00000020
                   }

                   [DllImport("kernel32.dll", SetLastError = true, CharSet = CharSet.Unicode)]
                   static extern bool MoveFileEx(string lpExistingFileName, string lpNewFileName, MoveFileFlags dwFlags);
                   public static bool MarkFileDelete (string sourcefile)
                   {
                       bool brc = false;
                       brc = MoveFileEx(sourcefile, null, MoveFileFlags.MOVEFILE_DELAY_UNTIL_REBOOT);          
                       return brc;
                   }
               }
'@
            }
         }
         Process {
            ForEach ($item in $Source) {
               Write-Verbose ('Attempting to resolve {0} to full path if not already' -f $item)
               $item = (Resolve-Path -Path $item).ProviderPath
               If ($PSCmdlet.ShouldProcess($item,'Mark for deletion')) {
                   If (-NOT [Posh]::MarkFileDelete($item)) {
                       Try { Throw (New-Object System.ComponentModel.Win32Exception) }
                       Catch {Write-Warning $_.Exception.Message}
                   }
               }
            }
         }
      } #end Register-FileToDelete function

      Register-FileToDelete (Join-Path $ProgDir $dll)
      Register-FileToDelete $ProgDir

      # remove everything else
      Remove-Item (Join-Path $ProgDir '*.*') -Exclude $dll -Force
   } else {
      Remove-Item $ProgDir -Recurse -Force 
   }
} else {
   throw 'FastCopy install not found!' 
}

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Version Downloads Last Updated Status
FastCopy (install) 3.82 1695 Saturday, June 29, 2019 Approved
FastCopy (install) 3.81 377 Tuesday, June 18, 2019 Approved
FastCopy (install) 3.80 644 Thursday, May 16, 2019 Approved
FastCopy (install) 3.70 454 Tuesday, April 30, 2019 Approved
FastCopy (install) 3.63 693 Thursday, February 28, 2019 Approved
FastCopy (install) 3.61 629 Friday, November 16, 2018 Approved
FastCopy (install) 3.54.0.20180906 496 Thursday, September 6, 2018 Approved
Discussion for the FastCopy (install) Package

Ground Rules:

  • This discussion is only about FastCopy (install) and the FastCopy (install) package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or FastCopy (install), or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus