Solved

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

Posted on 2008-06-19
5
1,572 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
  • 2
  • 2
5 Comments
 
LVL 9

Expert Comment

by:JonMny
Comment Utility
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 500 total points
Comment Utility

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
Comment Utility
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
Comment Utility
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
Comment Utility
For a single machine use something like this

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

Sorry not sure of a popup
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
This article will show, step by step, how to integrate R code into a R Sweave document
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

762 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now