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.



864 posts

Ultimate Geek


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


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

from the command prompt...


del \*.doc /S

or

del \*.docx /S


822 posts

Ultimate Geek


  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.

215 posts

Master Geek


  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

228 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!



864 posts

Ultimate Geek


  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

215 posts

Master Geek


  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
5406 posts

Uber Geek

Moderator
Trusted
Subscriber

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

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


 






864 posts

Ultimate Geek


  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

822 posts

Ultimate Geek


  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.



864 posts

Ultimate Geek


  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

822 posts

Ultimate Geek


  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 :)

1965 posts

Uber Geek

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? 




"You are" = "You're" - Not "Your".  "They are" = "They're" - Not "Their" or "There".  You probably mean "lose" not "loose".  There's no such word as "Alot".
 
On the internet, wasting time, since '89.



864 posts

Ultimate Geek


  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 new jobs are posted to our jobs board:



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:

A new project coming to Geekzone
Created by freitasm, last reply by xpd on 21-May-2013 21:19 (239 replies)
Pages... 14 15 16


HTC One (2013) owners' discussion
Created by Dingbatt, last reply by Technofreak on 21-May-2013 21:28 (1506 replies)
Pages... 99 100 101


How do you fall out of a moving car ???
Created by Mark, last reply by xpd on 21-May-2013 21:10 (16 replies)
Pages... 2


Changeover issue: dial up
Created by Zigg, last reply by coffeebaron on 21-May-2013 20:48 (16 replies)
Pages... 2


$200 Smart Phone!? Ideas..
Created by antaeusa, last reply by ajobbins on 21-May-2013 21:08 (31 replies)
Pages... 2 3


Orcon, Is this for real or a scam??
Created by old3eyes, last reply by mattwnz on 21-May-2013 13:20 (15 replies)

Vodafone Naked Broadband Speeds (Auckland CBD)
Created by wscalioni, last reply by grkiwi on 20-May-2013 21:13 (14 replies)

Ubiquiti Rocket M2 bridged - Does distance/performance drop markedly if units are mounted inside?
Created by clinty, last reply by knoydart on 21-May-2013 21:18 (12 replies)


Geekzone Jobs »
Most recent NZ jobs in technology:

Senior MI Analyst
Posted 21-May-2013 19:27

Software Engineer
Posted 21-May-2013 18:27

Senior C#.Net Developer ? 6 Months Fixed Term
Posted 21-May-2013 18:27

Senior Java Developer
Posted 21-May-2013 18:27

Intermediate Technical Analyst
Posted 21-May-2013 18:27

Domino Web Developer
Posted 21-May-2013 18:27

.NET Developer
Posted 21-May-2013 18:27


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.