Is there a Windows 2000 equivalent to running RDISK /s-?

A. Because Microsoft moved RDISK into NTBACKUP, you no longer have the quick option of updating your repair information with the RDISK /s- command. However, Andrej Budja has written a neat script that basically types the keystrokes necessary to run RDISK under Win2K. Save the following script to a file called Rdisks.js. Then, to run the script, double-click the Rdisks.js file.

var shell = new ActiveXObject("WScript.Shell");<br>
shell.Popup("Please insert blank floppy disk in the drive A:\n\n (C) 2000 Andrej Budja.\n Feel free to distribute\n\n", 6);<br><br>
shell.Run("ntbackup.exe");<br>
WScript.Sleep("500");<br><br>
shell.Sendkeys("\{ENTER\}");<br>
WScript.Sleep("200");<br><br>
shell.AppActivate("Backup");<br>
shell.Sendkeys("\{TAB\}");<br>
WScript.Sleep("50");<br>
shell.Sendkeys("\{TAB\}");<br>
WScript.Sleep("50");<br>
shell.Sendkeys("\{TAB\}");<br>
WScript.Sleep("50");<br><br>
shell.Sendkeys("\{ENTER\}");<br>
WScript.Sleep("200");<br><br>
shell.AppActivate("Emergency Repair Diskette");<br>
shell.Sendkeys("\{ \}");<br>
WScript.Sleep("200");<br><br>
shell.Sendkeys("\{ENTER\}");<br>
WScript.Sleep("12000");<br><br>
shell.AppActivate("Emergency Repair Diskette");<br>
shell.Sendkeys("%\{F4\}");<br>
WScript.Sleep("200");<br><br>
shell.Sendkeys("\{ENTER\}");<br>
WScript.Sleep("200");<br><br>
shell.AppActivate("Backup");<br>
shell.Sendkeys("%\{F4\}");<br><br>
WScript.Quit();<br>
Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish