Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
557 B

  1. Function BackupFiles()
  2. dim fso
  3. dim strWindows
  4. dim strNewName
  5. dim strCurrentName
  6. on error resume next
  7. strWindows = Session.Property( "WindowsFolder" )
  8. strNewName = strWindows & "Help\suptoolsold.chm"
  9. strCurrentName = strWindows & "Help\suptools.chm"
  10. set fso = createobject( "scripting.filesystemobject" )
  11. if not fso is nothing then
  12. if fso.FileExists( strNewName ) then
  13. fso.DeleteFile strNewName, true
  14. end if
  15. fso.MoveFile strCurrentName, strNewName
  16. set fso = nothing
  17. end if
  18. BackupFiles = 1
  19. End Function