Jump to content

Recommended Posts

Posted

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

Posted

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.

Posted

That shouldn't be too hard to script, but what stops the students just renaming the files, once they realise what is happening?

 

Jona

Posted
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

Posted
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.
Posted

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

Posted
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.
Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...