tri_94 Posted April 30, 2008 Posted April 30, 2008 hi there, we are having a bit a of a issuse with the pupils and use of flash games i've keep searching and deleting them off shared and there work areas. im just wondering if anyone can give me a script that will search all a drive and subfolders for the following files. air hockey.swf airhockey.swf bot arena.swf bowmaster.swf canyonglider.swf evilcar.swf gunmaster.swf gravity.swf linderider beta 2.swf linerider.swf mario.swf miniput.swf monster-truck-trials.swf monstertrucks.swf skywire.swf stick1.swf stuntdirtbike.swf and delete them without having to scroll through as we use swf files for out ict pupils webdesign. thanks nick
timbo343 Posted April 30, 2008 Posted April 30, 2008 Just enable file management in server 2003 R2 if you are running R2, that will stop users from saving .swf to their home drives. I just run a search and delete them that way.
Jona Posted April 30, 2008 Posted April 30, 2008 That shouldn't be too hard to script, but what stops the students just renaming the files, once they realise what is happening? Jona
PEO Posted April 30, 2008 Posted April 30, 2008 Just enable file management in server 2003 R2 if you are running R2, that will stop users from saving .swf to their home drives. I just run a search and delete them that way. cool plan... but if they use fireworks to create flash work for ocr etc then this would cause a few problems. think he may need to wright a script to delete particular files that he has listed. I would be intrested in this, as the kids seem to be able to download daft games like jetman etc
tri_94 Posted April 30, 2008 Author Posted April 30, 2008 nothing to stop that, however our pupils havent realised that. so anychance anyone can give me script
antoeknee Posted April 30, 2008 Posted April 30, 2008 If you're using Lan Ranger you could use the directory monitor
ChrisH Posted April 30, 2008 Posted April 30, 2008 Use a software restriction policy and make a hash of the files. This will mean that no matter what they rename them they will not be able to run them.
tri_94 Posted April 30, 2008 Author Posted April 30, 2008 can anyone give me a script that i can run on shared area to check all folders for the certain files and delete them if they are there. as i've looked on the net and cant find a way to do it. thanks nick
tomscaper Posted April 30, 2008 Posted April 30, 2008 Personally i wouldnt bother wasting your time deleting the games, as they will soon learn to rename them. I delete games each term and i leave it up to the teachers to make sure they dont play on them, used to spend all my time trying to figure out how to stop this but sometimes the solution is to leave this in the teachers hands.
Kyle Posted April 30, 2008 Posted April 30, 2008 Not sure if you could adapt this. I used it to delete two files but it may take a while for you to set up but once its done it would be easy to add to it. Call DeleteIfFound ("C:\Documents and Settings\All Users\Desktop\Class Server - Teacher.lnk") Function DeleteIfFound (FilePath) Dim Fso Set Fso = CreateObject ("Scripting.FileSystemObject") If Fso.FileExists (FilePath) Then Fso.DeleteFile (FilePath) End If Set Fso = Nothing End Function Call DeleteIfFound ("C:\Documents and Settings\All Users\Start Menu\Programs\Class Server - Teacher.lnk") Function DeleteIfFound (FilePath) Dim Fso Set Fso = CreateObject ("Scripting.FileSystemObject") If Fso.FileExists (FilePath) Then Fso.DeleteFile (FilePath) End If Set Fso = Nothing End Function Just change the files paths to use a wildcard to search multiple folders.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now