Skip to content

Instantly share code, notes, and snippets.

@chlserver
chlserver / backup script.vbs
Created February 17, 2020 02:38
Simple backup script
runBackup
Function runBackup()
Dim fileName, folderToBackup, fileToBackupTo, currentDate, fileExtensions, eachFileWrite, totalFileWrite
currentDate = DAY(date()) & "." & Month(date()) & "." & YEAR(Date())
fileName = "uTorrent " & currentDate & ".zip" 'File name; leave everything from the first "&" onwards
folderToBackup = "C:\Users\mlevit\AppData\Roaming\uTorrent" ' Location you wish to backup
fileExtensions = array("dat", "old") 'Specify which extensions you wish to backup on (i.e. leave as "array()" if you want the entire folder)