Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide
translations



Rockbox mail archive

Subject: Script to disable system restore for Archos or a portable HD

Script to disable system restore for Archos or a portable HD

From: Brian Wolven <brian.wolven_at_verizon.net>
Date: Tue, 20 Jul 2004 19:30:01 -0400

I got tired of doing this through the System Properties dialog
(win+pause then six additional clicks), so here's a script that does the
job. Save it as .vbs file, edit the drive letter to match your usage,
then click on it (or a shortcut to it) to do the job. Delete the line
with the 'msgbox' to skip the confirmation dialog. You could probably
set this up to happen automatically with an autorun.inf file, too. I've
disabled that feature on all my drives, so I haven't tried it.

'--- Disable system restore for a portable HD

  driveLetter = "J:\"
  set SRP = GetObject("winmgmts:\\.\root\default:SystemRestore")
  eSRP = SRP.disable(driveLetter)
  Set srp = Nothing

  msgbox "System restore has been disabled for drive: " & vbcrlf &
driveLetter

  Wscript.Quit

_______________________________________________
http://cool.haxx.se/mailman/listinfo/rockbox
Received on 2004-07-21

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy