Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Command To Empty Recycle Bin With Perl?

by bulk88 (Priest)
on Jul 13, 2014 at 04:23 UTC ( [id://1093402]=note: print w/replies, xml ) Need Help??


in reply to Command To Empty Recycle Bin With Perl?

#!/usr/bin/perl -w use strict; use Win32::API; Win32::API::Type->typedef( 'HRESULT', 'LONG' ); my $function = Win32::API::More->Import( 'shell32.dll', ' HRESULT SHEmptyRecycleBin( HWND hwnd, LPCTSTR pszRootPath, DWORD dwFlags );'); die "Error: $^E" if ! $function; #$^E is non-Cygwin only my $return = SHEmptyRecycleBin(0, "", 0);

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1093402]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (3)
As of 2024-04-19 15:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found