?
Solved

Delete remote machines recycle bin . Need a script to do this.

Posted on 2008-06-19
5
Medium Priority
?
1,580 Views
Last Modified: 2012-06-27
Hi,

Delete remote machines recycle bin . Need a script to do this.

I have this
del \\machinename\c$\Recycler\*.* /q /s
But this is for 1 machine how can i run a scipt on a list of machine names to empty the bin.

Regards
Sharath
0
Comment
Question by:bsharath
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 9

Expert Comment

by:JonMny
ID: 21825467
create a file computers.txt with a list of computers and then run


C:\tools>FOR /F "delims=~" %f in (computers.txt) DO del \\"%f"\c$\Recycler\*.* /
q /s
0
 
LVL 9

Accepted Solution

by:
JonMny earned 2000 total points
ID: 21825510

may have to remove the quotes, if you want this in a batch file need to change %f to %%F

C:\tools>FOR /F "delims=~" %f in (computers.txt) DO del \\%f\c$\Recycler\*.* /q
/s
0
 
LVL 1

Expert Comment

by:PhilJMcDougall
ID: 21931740
im after something like this also.... can anyone make one with a popup box (e.g. VBscript) that you input the remote pc name...
0
 
LVL 11

Author Comment

by:bsharath
ID: 21931818
For a single machine use something like this

del \\Machine Name\c$\Recycler\*.* /q /s

Sorry not sure of a popup
0
 
LVL 11

Author Comment

by:bsharath
ID: 21931819
For a single machine use something like this

del \\Machine Name\c$\Recycler\*.* /q /s

Sorry not sure of a popup
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you haven’t already, I encourage you to read the first article (http://www.experts-exchange.com/articles/18680/An-Introduction-to-R-Programming-and-R-Studio.html) in my series to gain a basic foundation of R and R Studio.  You will also find the …
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Suggested Courses

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question