Solved

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

Posted on 2008-06-19
5
1,578 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 500 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

691 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