Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.



1276 posts

Uber Geek
+1 received by user: 77


Topic # 98498 29-Feb-2012 14:00

Hi - I googled for tools etc but couldnt find anything promising....

I have some PCs that are used by students. They leave word documents around on the hard drive from time to time and I was looking for a cleanup tool that would (for example) look for all the .doc , .docx files etc that werent a core part of office and would clean them up (delete them). Ideally the same sort of thing for .xls .xlsm etc

I know you could try using file explorer and do a search for all these files - but I know it will find some of the templates etc in the office install area and it would be really good to have something that was just a little executable file to run.

Anyone got any bright ideas?
Oh - did I mention - preferably free??

 




-----------------------------------------------------------------------------------------------
Nothing is impossible for the man who doesn't have to do it it himself - A. H. Weiler

Create new topic
167 posts

Master Geek
+1 received by user: 1


  Reply # 588339 29-Feb-2012 14:14 Send private message

from the command prompt...


del \*.doc /S

or

del \*.docx /S


892 posts

Ultimate Geek
+1 received by user: 22


  Reply # 588352 29-Feb-2012 14:37 Send private message

jim.cox: from the command prompt...


del \*.doc /S

or

del \*.docx /S



Just make sure you don't run this on the root of C:\!

You would need to make this into a .bat file to run on the Documents and Settings or Users folders (depending on OS)

This site will explain the command more for you and allow you to better understand what it is doing:
http://ss64.com/nt/del.html

Not sure of your setup, but have you thought about using Microsoft's Shared Computer Toolkit?
http://technet.microsoft.com/en-us/library/cc507835.aspx

May or may not be an option for your setup.

267 posts

Ultimate Geek
+1 received by user: 6


  Reply # 588378 29-Feb-2012 15:32 Send private message

I would personally do this in powershell.  Something like:

$extensions = '.doc', '.docx'
Get-ChildItem 'Path to search' -Recurse | Where-Object { $extensions -contains $_.Extension } | Remove-Item

237 posts

Master Geek


  Reply # 588384 29-Feb-2012 15:52 Send private message

1. Open Windows Explorer
2. Input *.doc (etc) into search bar
3. Ctrl A
4. Del
5. Profit

Just don't run it in your C:\Program Files\Office folder?




this is a slap in the face!



1276 posts

Uber Geek
+1 received by user: 77


  Reply # 588385 29-Feb-2012 15:52

Thanks folks - I suppose I need to check if office has some default .doc .docx files when it is installed and give them a wide berth or I might muck up word.

 

Thanks for the ideas.




-----------------------------------------------------------------------------------------------
Nothing is impossible for the man who doesn't have to do it it himself - A. H. Weiler

267 posts

Ultimate Geek
+1 received by user: 6


  Reply # 588403 29-Feb-2012 16:09 Send private message

With PowerShell you could provide a list of paths to include or ignore plus a list of extensions to search for (as I showed with my script knocked up in 30 seconds).

With PowerShell you could schedule it.  You can also test the age of the file, e.g. only delete if its more than a week old.

3bit.com
5849 posts

Uber Geek
+1 received by user: 155

Moderator
Trusted
Subscriber

Reply # 588420 29-Feb-2012 16:28 Send private message

robjg63: I have some PCs that are used by students.  


 






1276 posts

Uber Geek
+1 received by user: 77


  Reply # 589266 2-Mar-2012 10:56

jaymz:
jim.cox: from the command prompt...


del \*.doc /S

or

del \*.docx /S



Just make sure you don't run this on the root of C:\!

You would need to make this into a .bat file to run on the Documents and Settings or Users folders (depending on OS)

This site will explain the command more for you and allow you to better understand what it is doing:
http://ss64.com/nt/del.html

Not sure of your setup, but have you thought about using Microsoft's Shared Computer Toolkit?
http://technet.microsoft.com/en-us/library/cc507835.aspx

May or may not be an option for your setup.


Your link above lead me to the Steadystate/Guest functionality that briefly appeared in the Win 7 RC and then Microsoft pulled the plug on it! I have to sound ignorant and say I didnt even know that steadystate had existed for XP users either....Oh dear!

I am amazed that they didnt make such useful features for kiosk/student facilities available in win7. Would have thought that public PCs are good advertising for MS - maybe they dont think so anymore..
MS published a few waffly papers saying there are other tools that can achieve the same thing - but I see that many people (like me) just find it confusing overkill. 




-----------------------------------------------------------------------------------------------
Nothing is impossible for the man who doesn't have to do it it himself - A. H. Weiler

892 posts

Ultimate Geek
+1 received by user: 22


  Reply # 589271 2-Mar-2012 11:09 Send private message

robjg63:

Your link above lead me to the Steadystate/Guest functionality that briefly appeared in the Win 7 RC and then Microsoft pulled the plug on it! I have to sound ignorant and say I didnt even know that steadystate had existed for XP users either....Oh dear!

I am amazed that they didnt make such useful features for kiosk/student facilities available in win7. Would have thought that public PCs are good advertising for MS - maybe they dont think so anymore..
MS published a few waffly papers saying there are other tools that can achieve the same thing - but I see that many people (like me) just find it confusing overkill. 


Apologies for that, just had a look and the links just lead you to the main MS download page, not very helpful at all!!

So are you running Windows XP or Windows 7?

I have another client who i locked down the PC using group policy which may be the next best thing for you.  It initally took me a bit of time to get the policies setup and working correctly, but once it was tested, rolling it out to multiple computers was very easy!

The client was running Windows XP and a 2003 domain.

If you would like a copy of the group policy that i setup, i would be happy to send you it for reference.



1276 posts

Uber Geek
+1 received by user: 77


  Reply # 589293 2-Mar-2012 11:28

We are using win 7.
Actually I just found a few people complaining about the omission from windows 7 and a couple of bods recommended Faronics Deep Freeze.
Looks to be about $30 per seat and is probably the best fit for us.

While tidying up junk documents that users might leave behind would be useful - Actually locking down the PC and restoring its state on each login would be the best solution.

I our case we have a couple of centres that dont have a server - just a firewall box that is doing the website lockdown/restrictions and a printer.

Might investigate something like this a bit further. 




-----------------------------------------------------------------------------------------------
Nothing is impossible for the man who doesn't have to do it it himself - A. H. Weiler

892 posts

Ultimate Geek
+1 received by user: 22


  Reply # 589315 2-Mar-2012 11:44 Send private message

robjg63: We are using win 7.
Actually I just found a few people complaining about the omission from windows 7 and a couple of bods recommended Faronics Deep Freeze.
Looks to be about $30 per seat and is probably the best fit for us.

While tidying up junk documents that users might leave behind would be useful - Actually locking down the PC and restoring its state on each login would be the best solution.

I our case we have a couple of centres that dont have a server - just a firewall box that is doing the website lockdown/restrictions and a printer.

Might investigate something like this a bit further. 


I had a look at the Faronics software site and it looks quite good.

If you have the budget for it, i find going with a paid software and the support they can give works out better and easier than trying to make a free solution work.

I would contact their sales team, explain your situation, they may offer a trial version for you to play with to ensure it will do what you require.

Let us know how you get on, it is always good to know about people's experiences with different software :)

Watchmaker Wizard
2403 posts

Uber Geek
+1 received by user: 57

Subscriber

  Reply # 589359 2-Mar-2012 13:06 Send private message

jim.cox: from the command prompt...


del \*.doc /S

or

del \*.docx /S



If you can login as the user then:

del /s c:\users\%username%\*.doc? 
 
or to delete them from ALL user folders:

  del /s c:\users\*.doc? 






1276 posts

Uber Geek
+1 received by user: 77


  Reply # 589371 2-Mar-2012 13:19

jaymz:
robjg63: We are using win 7.
Actually I just found a few people complaining about the omission from windows 7 and a couple of bods recommended Faronics Deep Freeze.
Looks to be about $30 per seat and is probably the best fit for us.

While tidying up junk documents that users might leave behind would be useful - Actually locking down the PC and restoring its state on each login would be the best solution.

I our case we have a couple of centres that dont have a server - just a firewall box that is doing the website lockdown/restrictions and a printer.

Might investigate something like this a bit further. 


I had a look at the Faronics software site and it looks quite good.

If you have the budget for it, i find going with a paid software and the support they can give works out better and easier than trying to make a free solution work.

I would contact their sales team, explain your situation, they may offer a trial version for you to play with to ensure it will do what you require.

Let us know how you get on, it is always good to know about people's experiences with different software :)


I actually downloaded the demo version - it works for a month without a key.
  • Easily installed.
  • Asks what drives/partitions you want to monitor - so just C: really required
  • Does a reboot. 
  • Log on to the PC for the first time - a message pops up asking if you want to set a password (of course you would) and it tells you that if you need to access the program again (you can see it in the toolbar) but need to hold SHIFT and double click it (so its sort of hidden).
So I logged on as administrator - mucked about with my desktop settings/wallpaper, installed a couple of programs and installed the ASK toolbar for IE. Made a temp folder and saved some junk.
Did a reboot and all the above has vanished and it was back to pristine condition.

Demo'd similar scenario to the boss and she was impressed. I am trying to order some keys.

If you have to make any permanent changes to the PC you just need to open up the admin screen and ask it to stay unlocked for the next X reboots or permanently stay unlocked and you make your changes and lock it again.

I didnt notice that it took much longer to reboot than before the software was installed - so that all seems good.

I guess any antivirus updates would be wiped - but I suppose thats not too important as the PC should always go back to a clean state. 

Found a few glowing recommendations for it - I have my fingers X'd. 




-----------------------------------------------------------------------------------------------
Nothing is impossible for the man who doesn't have to do it it himself - A. H. Weiler

Create new topic




Twitter »
Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:




News »

Trending now »
Hot discussions in our forums right now:

Does NZ need better gun laws?
Created by mattwnz, last reply by DravidDavid on 2-Sep-2014 12:12 (97 replies)
Pages... 5 6 7


Warning: Rage Ahead - Campbell Live and childhood poverty
Created by kawaii, last reply by k1wi on 2-Sep-2014 13:36 (69 replies)
Pages... 3 4 5


VideoEZY OnDemand
Created by Andib, last reply by networkn on 2-Sep-2014 13:50 (55 replies)
Pages... 2 3 4


Judith Collins: I am resigning
Created by Presso, last reply by gzt on 2-Sep-2014 11:42 (109 replies)
Pages... 6 7 8


What tyre brand/model to look at ?
Created by Mark, last reply by Mark on 2-Sep-2014 13:45 (25 replies)
Pages... 2


Cirque du Soleil Cellphone Hijack
Created by myopinion, last reply by PhantomNVD on 1-Sep-2014 18:01 (21 replies)
Pages... 2


Orcon Global Mode launched
Created by freitasm, last reply by shk292 on 1-Sep-2014 11:32 (132 replies)
Pages... 7 8 9


Lightbox press event release
Created by freitasm, last reply by IcI on 30-Aug-2014 17:54 (562 replies)
Pages... 36 37 38



Geekzone Live »
Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.

Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.