Solved

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

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how to pick specific file from ftp 13 64
Not seen Link button 5 55
Selecting Right Partition 6 69
Collapse and expand table in Word 2010 2 36
Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

829 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