Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Batch File Help


  • This topic is locked This topic is locked
1 reply to this topic

#1 Booman

Booman

  • Banned
  • 525 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:02:22 AM

Posted 01 October 2008 - 02:59 PM

Now at school in my PC Repair Technician coarse all people in that room share computers. I share a pc with a kid in the afternoon class. He is pulling pranks on me and it is annoying because I already know the prank. He keeps installing STEAM onto the pc which the teacher forbade. I need help with the batch files I made. I want to make a batch file that Deletes "C:\Program Files\Steam" without the Yes or no confirmation. This is what I currently have. I have a shortcut that launches the Steam.bat and others

Steam.bat

@echo off 
start "" "C:\Documents and Settings\Jeff\Desktop\Steam.vbs"
echo wscript.sleep 10000 > temp.vbs
start /wait temp.vbs
start "" "C:\Program Files\Mozilla Firefox\firefox.exe" "C:\Documents and Settings\Jeff\Desktop\youare.swf"
echo wscript.sleep 20000 > temp2.vbs
start /wait temp2.vbs
start "" "C:\Documents and Settings\Jeff\Desktop\Hide.vbs" "C:\Documents and Settings\Jeff\Desktop\StopFF.bat"
del temp.vbs

Steam.vbs

Prank=msgbox ("Windows has detected that you are playing games. The game you were trying to play will now be deleted." ,16, "System Error")

Hide.vbs

CreateObject("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0, False

StopFF.bat

@echo off
taskkill /im firefox.exe
del temp2.vbs

I tried to use what i found on the internet to override the confirmation and it deleted everything on the desktop (Where i tested it) and not the folder itself. I do not have the SteamDelete.bat file made.

Please help. Thanks

BC AdBot (Login to Remove)

 


#2 groovicus

groovicus

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD
  • Local time:01:22 AM

Posted 01 October 2008 - 05:17 PM

How do we know that you are not merely trying to figure out how to delete files on someones computer without their knowledge? If the teacher forbade the installation of Steam, then the teacher should be the one to deal with it, not you. Runnig an unauthorized script on the system is equally likely to get you in trouble.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users