Downloads:

33

Downloads of v 1.0.0:

33

Last Update:

05 Mar 2021

Package Maintainer(s):

Software Author(s):

  • David De Groot

Tags:

recyclenow empties empty recycle bin utility

RecycleNOW - Free Removal Tool

1.0.0 | Updated: 05 Mar 2021

Downloads:

33

Downloads of v 1.0.0:

33

Maintainer(s):

Software Author(s):

  • David De Groot

RecycleNOW - Free Removal Tool 1.0.0

All Checks are Passing

2 Passing Test


Validation Testing Passed


Verification Testing Passed

Details

To install RecycleNOW - Free Removal Tool, run the following command from the command line or from PowerShell:

>

To upgrade RecycleNOW - Free Removal Tool, run the following command from the command line or from PowerShell:

>

To uninstall RecycleNOW - Free Removal Tool, 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://community.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://community.chocolatey.org/api/v2)

4. Choose your deployment method:


choco upgrade recyclenow -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 recyclenow -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 recyclenow installed
  win_chocolatey:
    name: recyclenow
    state: present
    version: 1.0.0
    source: STEP 3 URL

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


chocolatey_package 'recyclenow' do
  action    :install
  version  '1.0.0'
  source   'STEP 3 URL'
end

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


Chocolatey::Ensure-Package
(
    Name: recyclenow,
    Version: 1.0.0,
    Source: STEP 3 URL
);

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


cChocoPackageInstaller recyclenow
{
   Name     = 'recyclenow'
   Ensure   = 'Present'
   Version  = '1.0.0'
   Source   = 'STEP 3 URL'
}

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


package { 'recyclenow':
  provider => 'chocolatey',
  ensure   => '1.0.0',
  source   => 'STEP 3 URL',
}

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


salt '*' chocolatey.install recyclenow version="1.0.0" 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 was approved by moderator TheCakeIsNaOH on 14 Mar 2021.

Description

RecycleNOW is a small utility that, when triggered, immediately empties the Recycle Bin.
It is meant to be a time-saver as, especially on slower computers, emptying the Bin can take a while. There is no interface, just run it and it will automatically empty the recycle bin. You can use a scheduler to run it, run it from the command line etc. Very simple, but may be useful for some.

Features

  • Fast as lightning
  • There's no visible interface, just an icon
  • Double-click and FLASH! The bin is empty!
  • Runs on Windows 95/98/ME/NT4/2k/2k3/2k8/XP/V/7/10

Package installation defaults

By default, installation of this package:

  • Will be installed in Chocolatey tools directory.
  • Will NOT install a desktop icon.
  • Will install a start menu shorcut.

Package parameters

  • /InstallDir - Installation directory, by default Chocolatey tools directory.
  • /DesktopIcon - Create a desktop shortcut.
  • /NoStartMenu - Do not create a start menu shortcut.

Example:
choco install recyclenow --params '"/InstallDir:C:\your\install\path /DesktopIcon /NoStartMenu"'

To have choco remember parameters on upgrade, be sure to set choco feature enable -n=useRememberedArgumentsForUpgrades


tools\chocolateyinstall.ps1
$ErrorActionPreference = 'Stop';
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$toolsDir   = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$PackageParameters = Get-PackageParameters

### PARAMETERS
If ($PackageParameters.InstallDir) {
  $installDir = $PackageParameters.InstallDir
} Else {
  $installDir = "$toolsDir"
}

$packageArgs = @{
  packageName   = $env:ChocolateyPackageName
  unzipLocation = "$installDir"
  fileType      = 'exe'

  url           = 'https://bluefive.pairsite.com/RecycleNOW.zip'
  checksum      = '29D631E693005D722267AD7F52437443612CD36C6907E2F1EF1273C03FF1975F'
  checksumType  = 'sha256'  
}

Install-ChocolateyZipPackage @packageArgs

$targetPath = Join-Path "$installDir" 'RecycleNOW\RecycleNOW.exe'

# Add start menu shortcut
If (-Not( $PackageParameters.NoStartMenu )) {
  $programsPath = "$env:ProgramData\Microsoft\Windows\Start Menu\Programs\"
  $programsFilePath = Join-Path $programsPath "RecycleNOW.lnk"
  Install-ChocolateyShortcut -shortcutFilePath "$programsFilePath" -targetPath "$targetPath"
}

# Install desktop icon
If ( $PackageParameters.DesktopIcon ) {  
  Install-ChocolateyShortcut -shortcutFilePath "$Env:USERPROFILE\Desktop\RecycleNOW.lnk" -targetPath "$targetPath"
}
tools\chocolateyuninstall.ps1
$ErrorActionPreference = 'Stop'
Uninstall-ChocolateyZipPackage $env:ChocolateyPackageName 'RecycleNOW.zip'

# Remove start menu shortcut
$programsPath = "$env:ProgramData\Microsoft\Windows\Start Menu\Programs\"
$programsFilePath = Join-Path $programsPath "RecycleNOW.lnk"
If (Test-Path "$programsFilePath") { Remove-Item "$programsFilePath" }

# Remove desktop icon
$shortcutFilePath = "$Env:USERPROFILE\Desktop\RecycleNOW.lnk"
If (Test-Path "$shortcutFilePath") { Remove-Item "$shortcutFilePath" }

Log in or click on link to see number of positives.

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

This package has no dependencies.

Discussion for the RecycleNOW - Free Removal Tool Package

Ground Rules:

  • This discussion is only about RecycleNOW - Free Removal Tool and the RecycleNOW - Free Removal Tool 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 RecycleNOW - Free Removal Tool, 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