Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER General Discussion Forum

Reply
 
Thread Tools Display Modes
Old 04-20-2013, 01:07 PM   #1
foxAsteria
Human being with feelings
 
foxAsteria's Avatar
 
Join Date: Dec 2009
Location: Oblivion
Posts: 10,255
Default 100's of Custom Actions...Gone.

Computer crashed last night while editing action shortcuts. Open up today to find that all of my custom actions and shortcuts are gone.

Even better, I find I hadn't been backing them up since awhile.

A little part of me just died.
__________________
foxyyymusic
foxAsteria is online now   Reply With Quote
Old 04-20-2013, 01:16 PM   #2
foxAsteria
Human being with feelings
 
foxAsteria's Avatar
 
Join Date: Dec 2009
Location: Oblivion
Posts: 10,255
Default

will system restore bring these back by any chance? not sure. what file are they even stored in?
__________________
foxyyymusic
foxAsteria is online now   Reply With Quote
Old 04-20-2013, 01:32 PM   #3
Susan G
Human being with feelings
 
Susan G's Avatar
 
Join Date: Jul 2008
Location: Putnam County, NY, USA
Posts: 3,950
Default

Hi PooFox-

In Windows they're in %appdata%\REAPER\reaper-kb.ini.

Good luck!

-Susan
Susan G is offline   Reply With Quote
Old 04-20-2013, 01:44 PM   #4
foxAsteria
Human being with feelings
 
foxAsteria's Avatar
 
Join Date: Dec 2009
Location: Oblivion
Posts: 10,255
Default

Thanks I found it, and it's still 49KB but when I open it in notepad2 all I see is nul nul nul nul... guess I'm screwed.
__________________
foxyyymusic
foxAsteria is online now   Reply With Quote
Old 04-20-2013, 08:06 PM   #5
plgrmsprgrs
Human being with feelings
 
Join Date: Oct 2007
Location: Virginia, USA
Posts: 2,021
Default

Geez Poo - that really is a drag. Sorry you're having such trouble.

Kyle
__________________
"Same as it ever was . . . " - David Byrne
plgrmsprgrs is offline   Reply With Quote
Old 04-20-2013, 09:19 PM   #6
Mind Riot
Human being with feelings
 
Mind Riot's Avatar
 
Join Date: Mar 2008
Posts: 1,008
Default

Did you just find the file and look in it or did you try System Restore? Because I'm pretty sure System Restore is supposed to preserve your files as much as anything else. Just try it, go back a day or two, you might be surprised.

But if it doesn't work you have my condolences, that's a huge bummer.
__________________
"Mah blahkinned sole izz daw-kaw thawn thah blahkissed nye-eeeet!!!"
SQUONK SQUONK SQUEE!!! SQUIDONK SQUIDONK DONK SQUEE!!!
"Thah daaahhhk of thah nye-eeeet izz lye-eeek my-eee sole-aaah!!!"
Mind Riot is offline   Reply With Quote
Old 04-20-2013, 09:27 PM   #7
braveness23
Human being with feelings
 
braveness23's Avatar
 
Join Date: Aug 2012
Posts: 296
Default

So sorry.

I'm gonna start a "How do you back up your system" thread.
braveness23 is offline   Reply With Quote
Old 04-20-2013, 09:56 PM   #8
rog951
Human being with feelings
 
rog951's Avatar
 
Join Date: Jan 2013
Location: Central Maryland, USA
Posts: 92
Default

Definitely try System Restore. It has saved my ass on Vista multiple times! Worked just like a time machine for me. Haven't needed it yet on Win7 (knock wood) but I'd expect it to work just fine.
rog951 is offline   Reply With Quote
Old 04-21-2013, 12:57 AM   #9
foxAsteria
Human being with feelings
 
foxAsteria's Avatar
 
Join Date: Dec 2009
Location: Oblivion
Posts: 10,255
Default

thanks, all. unfortunately the file was not taken into account with system restore despite it being on for the windows partition. but since i had installed reaper on my brothers machine with my config a couple months ago, not all was lost.

i just wish i would have backed up my config more recently. based on my record, a great deal of tweaks likely occurred in that amount of time...
__________________
foxyyymusic
foxAsteria is online now   Reply With Quote
Old 04-21-2013, 03:46 AM   #10
planetnine
Human being with feelings
 
planetnine's Avatar
 
Join Date: Oct 2007
Location: Lincoln, UK
Posts: 7,924
Default

Quote:
Originally Posted by PooFox View Post
thanks, all. unfortunately the file was not taken into account with system restore despite it being on for the windows partition. but since i had installed reaper on my brothers machine with my config a couple months ago, not all was lost.

i just wish i would have backed up my config more recently. based on my record, a great deal of tweaks likely occurred in that amount of time...

It's a really nasty lesson in how life doesn't give anybody preferential treatment. I learned the hard way, my install corrupted it's config once and I had to start afresh

-save a complete REAPER config file and back it up on a drive at least once a week or after any major config/ custom action changes...



>
__________________
Nathan, Lincoln, UK. | Item Marker Tool. (happily retired) | Source Time Position Tool. | CD Track Marker Tool. | Timer Recording Tool. | dB marks on MCP faders FR.
planetnine is offline   Reply With Quote
Old 04-21-2013, 05:27 AM   #11
mikeroephonics
Human being with feelings
 
mikeroephonics's Avatar
 
Join Date: Nov 2006
Posts: 2,533
Default

Quote:
Originally Posted by planetnine View Post
-save a complete REAPER config file and back it up on a drive at least once a week or after any major config/ custom action changes...
^ This.

This is where you do that.
http://imgur.com/iCjUhbM

Do it. Do it often. It takes under a minute to backup.
__________________
Please check out these MIDI requests: http://forum.cockos.com/showthread.php?t=103192
Thanks.
mikeroephonics is offline   Reply With Quote
Old 04-21-2013, 06:05 AM   #12
heda
Human being with feelings
 
heda's Avatar
 
Join Date: Jun 2012
Location: Spain
Posts: 7,239
Default

there is an important rule in this world.. you never backup your things until you lose something...

oops.. I'm going to make a backup of reaper folder right now...
heda is offline   Reply With Quote
Old 04-21-2013, 11:30 AM   #13
bladerunner
Human being with feelings
 
bladerunner's Avatar
 
Join Date: Sep 2007
Location: Kent, UK
Posts: 4,846
Default

how's this for paranoid - i copy and paste the whole reaper roaming folder to another hd and a usb stick a few times a week to make sure i never lose the way i have reaper set up.

Also - make sure you export your actions, menu/toolbar customisations and mouse modifiers to their respective own files and keep these backed up (they will also be in the roaming folder).
__________________
Mastering from £30 per track \\\
Facebook \\\ #masteredbyloz
bladerunner is offline   Reply With Quote
Old 04-21-2013, 11:45 AM   #14
foxAsteria
Human being with feelings
 
foxAsteria's Avatar
 
Join Date: Dec 2009
Location: Oblivion
Posts: 10,255
Default

Quote:
Originally Posted by planetnine View Post
It's a really nasty lesson in how life doesn't give anybody preferential treatment. I learned the hard way, my install corrupted it's config once and I had to start afresh

-save a complete REAPER config file and back it up on a drive at least once a week or after any major config/ custom action changes...



>
yea, see i had be doing that, just not in the last couple months. so it's all the more nasty for disaster to strike when you've grown complacent. can't take anything for granted---even your own vigilance.
__________________
foxyyymusic
foxAsteria is online now   Reply With Quote
Old 04-21-2013, 12:33 PM   #15
Mind Riot
Human being with feelings
 
Mind Riot's Avatar
 
Join Date: Mar 2008
Posts: 1,008
Default

I run a 1TB Samsung external USB drive and a Western Digital 500GB external as well.

The Samsung has the entire C drive image backed up onto it every night. Each folder in the drive image is mountable, so I can go into the image and retrieve individual files if necessary.

The Samsung and the Western Digital both back up all my audio and samples from my E drive every night. This isn't done via imaging software, this is just straight up copying so it's as easy to access as any other folder or file.

Somebody once said something that stuck with me and motivated me to have a setup like this. He said "When it comes to audio, if it doesn't exist in at least two places, it doesn't exist."
__________________
"Mah blahkinned sole izz daw-kaw thawn thah blahkissed nye-eeeet!!!"
SQUONK SQUONK SQUEE!!! SQUIDONK SQUIDONK DONK SQUEE!!!
"Thah daaahhhk of thah nye-eeeet izz lye-eeek my-eee sole-aaah!!!"
Mind Riot is offline   Reply With Quote
Old 04-21-2013, 03:59 PM   #16
Sound asleep
Human being with feelings
 
Sound asleep's Avatar
 
Join Date: Nov 2009
Location: Montreal, Canada
Posts: 9,052
Default

omg, this is my greatest fear. backing them up right now, thanks for reminding me.


The only thing i fear more than this, is losing the music i've recorded.
__________________
Slava Ukraini
Sound asleep is offline   Reply With Quote
Old 04-21-2013, 04:02 PM   #17
Sound asleep
Human being with feelings
 
Sound asleep's Avatar
 
Join Date: Nov 2009
Location: Montreal, Canada
Posts: 9,052
Default

Quote:
Originally Posted by bladerunner View Post
how's this for paranoid - i copy and paste the whole reaper roaming folder to another hd and a usb stick a few times a week to make sure i never lose the way i have reaper set up.

Also - make sure you export your actions, menu/toolbar customisations and mouse modifiers to their respective own files and keep these backed up (they will also be in the roaming folder).
I have a similar paranoia, I backup to 2 separate hard drives, though, i do slack too much on my backup rate.
__________________
Slava Ukraini
Sound asleep is offline   Reply With Quote
Old 04-21-2013, 05:46 PM   #18
airon
Human being with feelings
 
airon's Avatar
 
Join Date: Aug 2006
Location: Berlin
Posts: 11,817
Default

Thanks for the reminder. I've been wanting to setup a 1-click backup solution, the way I have a little script for backing up my email drive and password files.

Perhaps this is a good opportunity to throw something like that together.

Goals
Create a batch file or something similar to double-click, so it's no effort to do the right thing

Take a specified directory.

ZIP(/rar/7-zip/whatever) it up to the backup location, adding a date and time of the following format to the filename. Use verfication if possible.

"BLahblah_2013_04_21_1500.zip"
2013, April 21st, 15:00. This kid of filename sorts very well.

Any programs we could use to do that, or batch files for such a purpose ?

__________________
Using Latch Preview (Video) - Faderport 16 setup for CSI 1.1 , CSI 3.10
Website
"My ego comes pre-shrunk" - Randy Thom
airon is offline   Reply With Quote
Old 04-21-2013, 07:05 PM   #19
foxAsteria
Human being with feelings
 
foxAsteria's Avatar
 
Join Date: Dec 2009
Location: Oblivion
Posts: 10,255
Default

Quote:
Originally Posted by airon View Post
Any programs we could use to do that, or batch files for such a purpose ?

[/INDENT]
well i've got syncback free backing up fairly continuously to a usb drive, but unfortunately i had neglected to include my windows user profile folder. it's backing it up now though for sure.

it's highly configurable and runs automatically. it can create independent zip files for each file or one large file. i recommend the former so you can get at the files easier.
__________________
foxyyymusic
foxAsteria is online now   Reply With Quote
Old 04-21-2013, 07:24 PM   #20
Lawrence
Human being with feelings
 
Join Date: Mar 2007
Posts: 21,551
Default

Quote:
Originally Posted by airon View Post
Take a specified directory.

ZIP(/rar/7-zip/whatever) it up to the backup location, adding a date and time of the following format to the filename. Use verfication if possible.

"BLahblah_2013_04_21_1500.zip"
2013, April 21st, 15:00. This kid of filename sorts very well.

Any programs we could use to do that, or batch files for such a purpose ?
Easy enough with Win scripting and/or I assume Apple script. What you'd probably want is to have it copy your config folders to dropbox or some kind of cloud folder.

Reference: http://msdn.microsoft.com/en-us/libr...(v=vs.84).aspx

Here's a little VBS script that backs up the Reaper data to dropbox. I suppose you could tell Windows to run that file once a day. If you want, I can add code to zip it up first.

Code:
	'Format the current date and time and replace illegal chars
Dim CDate
CDate = CStr(Now)
CDate=(Replace (CDate, "/", "-"))
CDate=(Replace (CDate, ":","."))

Dim fso, FolderLoc
Set fso = CreateObject("Scripting.FileSystemObject")

	'Make the new backup folder in a known folder location
	'New folder is named after the current date and time
FolderLoc = "C:\users\Lawrence\Dropbox\Reaper Backups\"  & CDate
fso.CreateFolder folderloc

	'Copy the Reaper data to the new backup folder.
fso.CopyFolder "C:\users\Lawrence\AppData\Roaming\Reaper\*", folderloc

Last edited by Lawrence; 04-21-2013 at 09:10 PM.
Lawrence is offline   Reply With Quote
Old 04-21-2013, 09:09 PM   #21
mikeroephonics
Human being with feelings
 
mikeroephonics's Avatar
 
Join Date: Nov 2006
Posts: 2,533
Default

Backup everything you don't want to lose to multiple physical locations.

If you lose data from 2 physical locations (& especially more than 2) you probably have much bigger problems on your hands than losing some 0s & 1s on a HDD or DVD-r.
__________________
Please check out these MIDI requests: http://forum.cockos.com/showthread.php?t=103192
Thanks.
mikeroephonics is offline   Reply With Quote
Old 04-21-2013, 09:16 PM   #22
DOM
Human being with feelings
 
Join Date: Feb 2013
Posts: 81
Default

Quote:
Originally Posted by planetnine View Post
It's a really nasty lesson in how life doesn't give anybody preferential treatment. I learned the hard way, my install corrupted it's config once and I had to start afresh

-save a complete REAPER config file and back it up on a drive at least once a week or after any major config/ custom action changes...


>
This is not really such a bad thing. The phoenix couldn't have risene from the ashes if there wasn't a fire... (The point being is that sometimes starting fresh is a good thing)
DOM is offline   Reply With Quote
Old 04-21-2013, 09:46 PM   #23
mikeroephonics
Human being with feelings
 
mikeroephonics's Avatar
 
Join Date: Nov 2006
Posts: 2,533
Default

Quote:
Originally Posted by DOM View Post
This is not really such a bad thing. The phoenix couldn't have risene from the ashes if there wasn't a fire... (The point being is that sometimes starting fresh is a good thing)
I checked my install & data paths but couldn't find any fires, ashes nor phoenixes. Maybe I put them in the wrong path. Nicholas?
__________________
Please check out these MIDI requests: http://forum.cockos.com/showthread.php?t=103192
Thanks.
mikeroephonics is offline   Reply With Quote
Old 04-21-2013, 11:19 PM   #24
foxAsteria
Human being with feelings
 
foxAsteria's Avatar
 
Join Date: Dec 2009
Location: Oblivion
Posts: 10,255
Default

Quote:
Originally Posted by DOM View Post
The phoenix couldn't have risene from the ashes if there wasn't a fire... (The point being is that sometimes starting fresh is a good thing)
i agree with this in most cases. in this one mostly because you put it in alchemical terms.

At any rate I did take the opportunity to configure a new, mouse-free, click free, on the fly, improv recording approach using just maschine mikro. could have been much worse; fortunately the custom actions are in a separate file from any other settings.
__________________
foxyyymusic
foxAsteria is online now   Reply With Quote
Old 04-22-2013, 03:41 AM   #25
Normie
Human being with feelings
 
Join Date: Sep 2010
Location: Topock, AZ
Posts: 367
Default

I too learned the hard way. I now have 3 HDs and clone the main drive regularly to the other two. Yea it's a couple hundred bucks. but it's worth it.

I AM NOT going through that hell again.
Normie is offline   Reply With Quote
Old 04-22-2013, 05:28 AM   #26
airon
Human being with feelings
 
airon's Avatar
 
Join Date: Aug 2006
Location: Berlin
Posts: 11,817
Default

Quote:
Originally Posted by Lawrence View Post
Easy enough with Win scripting and/or I assume Apple script. What you'd probably want is to have it copy your config folders to dropbox or some kind of cloud folder.

Reference: http://msdn.microsoft.com/en-us/libr...(v=vs.84).aspx

Here's a little VBS script that backs up the Reaper data to dropbox. I suppose you could tell Windows to run that file once a day. If you want, I can add code to zip it up first.
Please do. It'll be a good example I can then use to write my own scripts, using external commandline tools.

Interesting article. Thanks for the link.
__________________
Using Latch Preview (Video) - Faderport 16 setup for CSI 1.1 , CSI 3.10
Website
"My ego comes pre-shrunk" - Randy Thom
airon is offline   Reply With Quote
Old 04-22-2013, 06:27 AM   #27
Lawrence
Human being with feelings
 
Join Date: Mar 2007
Posts: 21,551
Default

The easiest way is probably to use the DotNetZip component from here..

http://dotnetzip.codeplex.com/releases/view/68268

... and use one of the examples from the source code page...

http://dotnetzip.codeplex.com/wikipa...Title=Examples

With the library it's pretty easy as shown below. You can look over those examples to see how to add folders.

Code:
Using zip As ZipFile = New ZipFile()
    zip.AddFile("c:\photos\personal\7440-N49th.png")
    zip.AddFile("c:\Desktop\2008_Annual_Report.pdf")
    zip.AddFile("ReadMe.txt")
    zip.Save("MyZipFile.zip")
End Using
And just schedule your script to run once a day or once a week or whatever for an automated backup.

BTW, that's one of the languages used to script Vegas, VBS, which makes it really accessible, using the Vegas API without any kind of third party development environment. I

I used the current date and time in the previous example for the file name because there will never be two identical dates and times so by doing that you'll never have to worry about filename conflicts.
Lawrence is offline   Reply With Quote
Old 04-22-2013, 08:46 AM   #28
Lawrence
Human being with feelings
 
Join Date: Mar 2007
Posts: 21,551
Default

Here ya go Airon. I threw together a little auto folder backup utility in VB2010 using the DotNetZip dll.



Executable and dll: http://theaudiocave.com/reaper/Backup.zip

VB2010 Source: http://theaudiocave.com/reaper/ZipBackup.zip

VBE 2010 Download page: http://www.microsoft.com/visualstudi...d-2010-express

The timer is set to fire every hour to check if the day and hour match for the backup, with the auto-backup being weekly as it is there ... or anytime manually with the big button.
Lawrence is offline   Reply With Quote
Old 04-22-2013, 08:56 AM   #29
Smurf
Human being with feelings
 
Smurf's Avatar
 
Join Date: Jan 2006
Posts: 2,173
Default

You folks are amazing.....
__________________
Yep's First 3 Years in PDF's
HP Z600 w/3GHz 12 Core, 48GB Memory, nVidia Quadro 5800, 240GB SSD OS drive, 3 480GB SSD Sample/Storage drives, 18TB External Storage, Dual 27" Monitors
Smurf is offline   Reply With Quote
Old 04-22-2013, 09:14 AM   #30
Lawrence
Human being with feelings
 
Join Date: Mar 2007
Posts: 21,551
Default

Nah... this is basic stuff. Here's the source as text if anyone wants to use some of the code for a VBS script. Not quite sure how you'd import / reference the dll in a script though, haven't really done that myself, but it's probably possible.

Code:
Imports Ionic.Zip

Public Class Form1
    Dim SourceDir As String, DestDir As String, RunTime As String
    Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load

        'Load the times
        Dim I As Integer
        For I = 1 To 12
            TimeBox.Items.Add(I)
        Next I

        'Load the backup path string from the registry into the text box
        BackupPath.Text = GetSetting("Zip Backup", "Settings", "Target", "")
        'Set the variable
        SourceDir = BackupPath.Text

        'Load the destination path string from the registry into the text box
        DestPath.Text = GetSetting("Zip Backup", "Settings", "Destination", "")
        'Set the variable
        DestDir = DestPath.Text

        'Load the last backup time from reg
        LastBackup.Text = GetSetting("Zip Backup", "Settings", "Last", "")

        'Load the state of the timer option
        BTimer.Checked = GetSetting("Zip Backup", "Settings", "Timer", False)


        'Load the saved timer day
        DayBox.Text = GetSetting("Zip Backup", "Settings", "Day", "")

        'Load the saved timer hour
        TimeBox.Text = GetSetting("Zip Backup", "Settings", "Hour", "")

        'Set AM/PM
        Dim AP = GetSetting("Zip Backup", "Settings", "AP", "")
       Select AP
            Case Is = "AM"
                OptAM.Checked = True
            Case Is = "PM"
                OptPM.Checked = True
            Case Is = ""
                OptAM.Checked = True
        End Select

        RunTime = DayBox.Text & " " & TimeBox.Text & " " & AP
    End Sub

    Private Sub BackupNow_Click(sender As System.Object, e As System.EventArgs) Handles BackupNow.Click
        WriteZip()
    End Sub

    Sub WriteZip()

        'Make sure both paths are valid
        With My.Computer.FileSystem
            If .DirectoryExists(SourceDir) = False Or .DirectoryExists(DestDir) = False Then
                MsgBox("Please set both the source and destination directories first.", vbOKOnly + vbInformation, "Set Paths")
                Exit Sub
            End If
        End With

        'Format the date for the zip filename
        Dim DateDisp = Now.ToString("ddd MMM, d, yyyy h:m:ss tt")
        Dim DateVal = Now.ToString("MMM d yyyy  h_m_ss tt")


        'Create the zip file
        Using zip As ZipFile = New ZipFile
            zip.AddDirectory(SourceDir)  'zip the source folder
            zip.Save(DestDir & "\" & DateVal & ".zip")  'save the zip to the dest directory
        End Using

        'Update the 'Last Backup' lable, store it to reg
        LastBackup.Text = DateDisp
        'Save the path to the registry
        SaveSetting("Zip Backup", "Settings", "Last", DateDisp)
    End Sub

   
    Private Sub BFolder_Click(sender As System.Object, e As System.EventArgs) Handles BFolder.Click
        On Error Resume Next
        FD1.ShowDialog()
        If My.Computer.FileSystem.DirectoryExists(FD1.SelectedPath) = False Then Exit Sub

        'Save the path to the registry
        SaveSetting("Zip Backup", "Settings", "Target", FD1.SelectedPath)

        'Update the text box
        BackupPath.Text = FD1.SelectedPath
        SourceDir = FD1.SelectedPath
    End Sub

    Private Sub DestFolder_Click(sender As System.Object, e As System.EventArgs) Handles DestFolder.Click
        On Error Resume Next
        FD1.ShowDialog()
        If My.Computer.FileSystem.DirectoryExists(FD1.SelectedPath) = False Then Exit Sub

        'Save the path to the registry
        SaveSetting("Zip Backup", "Settings", "Destination", FD1.SelectedPath)

        'Update the text box
        DestPath.Text = FD1.SelectedPath
        DestDir = FD1.SelectedPath
    End Sub


    Private Sub Timer1_Tick(sender As System.Object, e As System.EventArgs) Handles Timer1.Tick

        If Now.ToString("dddd h tt") = RunTime Then
            WriteZip()
        End If

    End Sub

    Private Sub BTimer_CheckedChanged(sender As System.Object, e As System.EventArgs) Handles BTimer.CheckedChanged
        If BTimer.Checked = True Then
            Timer1.Enabled = True
        Else
            Timer1.Enabled = False
        End If

        'Save the timer state to the registry
        SaveSetting("Zip Backup", "Settings", "Timer", BTimer.Checked)

       
    End Sub

    Private Sub DayBox_SelectedIndexChanged(sender As System.Object, e As System.EventArgs) Handles DayBox.SelectedIndexChanged

        'Save the timer day
        SaveSetting("Zip Backup", "Settings", "Day", DayBox.Text)

    End Sub

    Private Sub TimeBox_SelectedIndexChanged(sender As System.Object, e As System.EventArgs) Handles TimeBox.SelectedIndexChanged
        'Save the timer hour
        SaveSetting("Zip Backup", "Settings", "Hour", TimeBox.Text)
        CheckAMPM() 'Make sure we store the current am/pm state
    End Sub

    
    Private Sub OptAM_CheckedChanged(sender As System.Object, e As System.EventArgs) Handles OptAM.CheckedChanged, OptPM.CheckedChanged
        CheckAMPM()
    End Sub

    Private Sub CheckAMPM()
        If OptAM.Checked = True Then
            SaveSetting("Zip Backup", "Settings", "AP", "AM")
        Else
            SaveSetting("Zip Backup", "Settings", "AP", "PM")
        End If
    End Sub
End Class
Lawrence is offline   Reply With Quote
Old 04-22-2013, 09:26 AM   #31
karbomusic
Human being with feelings
 
karbomusic's Avatar
 
Join Date: May 2009
Posts: 29,260
Default

Quote:
Not quite sure how you'd import / reference the dll in a script though
CreateObject() IIRC and the dll has to be registred with the system (regsvr32) and you use the friendly name that it was registered with:

Set objMyDllObj=CreateObject("MyNamespace.Object")
objMyDllObj.DoWork()

That's for a COM object, would be different if doable with a .NET object possibly, been awhile since I wrote one.
karbomusic is offline   Reply With Quote
Old 04-22-2013, 09:27 AM   #32
Lawrence
Human being with feelings
 
Join Date: Mar 2007
Posts: 21,551
Default

Quote:
Originally Posted by karbomusic View Post
CreateObject() IIRC and the dll has to be registred with the system (regsvr32) and you use the friendly name that it was registered with:

Set objMyDllObj=CreateObject("MyNamespace.Object")
objMyDllObj.DoWork()
I knew Karbo would know.

If Reaper can launch / shell an external file from it's own API, the backup script function could (I suppose) be on a tool button to click whenever you want to backup your config folder or whatever. I'll leave it to Karbo to do the dll import part. The other part is only these few lines of code...


Code:
Using zip As ZipFile = New ZipFile
            zip.AddDirectory(SourceDir) 
            zip.Save(DestDir & "\" & [filename] & ".zip") 
End Using

Last edited by Lawrence; 04-22-2013 at 09:32 AM.
Lawrence is offline   Reply With Quote
Old 04-22-2013, 10:23 AM   #33
karbomusic
Human being with feelings
 
karbomusic's Avatar
 
Join Date: May 2009
Posts: 29,260
Default

I think the .NET DLL being referenced needs to have been built as Interop and COM visible meaning that that's required for the VBScript to see it as if it were a COM object. Someone would have to look at ICONIC (assuming thats the one) to see if it is.

http://www.codeproject.com/Articles/...rom-a-VBScript

As far as the Reaper API I don't know of a way to execute an external exe such as cscript.exe myscript.vbs but it may be possible. I just haven't needed it so haven't looked. I know one method but it is extremely kludgy and ugly which is to point the secondary external editor to it (yuck). Surely mercado or someone knows the right way.
karbomusic is offline   Reply With Quote
Old 04-22-2013, 11:19 AM   #34
Sound asleep
Human being with feelings
 
Sound asleep's Avatar
 
Join Date: Nov 2009
Location: Montreal, Canada
Posts: 9,052
Default

Quote:
Originally Posted by Lawrence View Post
Here ya go Airon. I threw together a little auto folder backup utility in VB2010 using the DotNetZip dll.



Executable and dll: http://theaudiocave.com/reaper/Backup.zip

VB2010 Source: http://theaudiocave.com/reaper/ZipBackup.zip

VBE 2010 Download page: http://www.microsoft.com/visualstudi...d-2010-express

The timer is set to fire every hour to check if the day and hour match for the backup, with the auto-backup being weekly as it is there ... or anytime manually with the big button.
Will this work across locations on my network? so say, i have one computer, and it is backing up a file the reaper data off another network location, and then saving that file to yet another network location?
__________________
Slava Ukraini
Sound asleep is offline   Reply With Quote
Old 04-22-2013, 11:22 AM   #35
Lawrence
Human being with feelings
 
Join Date: Mar 2007
Posts: 21,551
Default

Quote:
Originally Posted by Sound asleep View Post
Will this work across locations on my network? so say, i have one computer, and it is backing up a file the reaper data off another network location, and then saving that file to yet another network location?
I would think so, if the destination path string is valid (formatted correctly) and reachable, like a network drive location or whatever.

I don't know why it wouldn't, but I haven't actually tried it. The target and destination paths are (afaik) any valid local file or folder path that Windows can reach... Internet or WAN paths excluded I guess.

I mean, it's all managed code so if you can copy a folder to a network drive manually, that should also be able to do it.

But Karbo may have more insight on all that.

P.S. If you backup to a shared network folder it will get copied across the network by itself won't it?

Last edited by Lawrence; 04-22-2013 at 11:34 AM.
Lawrence is offline   Reply With Quote
Old 04-22-2013, 02:31 PM   #36
Sound asleep
Human being with feelings
 
Sound asleep's Avatar
 
Join Date: Nov 2009
Location: Montreal, Canada
Posts: 9,052
Default

Quote:
Originally Posted by Lawrence View Post
I would think so, if the destination path string is valid (formatted correctly) and reachable, like a network drive location or whatever.

I don't know why it wouldn't, but I haven't actually tried it. The target and destination paths are (afaik) any valid local file or folder path that Windows can reach... Internet or WAN paths excluded I guess.

I mean, it's all managed code so if you can copy a folder to a network drive manually, that should also be able to do it.

But Karbo may have more insight on all that.

P.S. If you backup to a shared network folder it will get copied across the network by itself won't it?
I'm not sure exactly about all the protocols. It gets tricky when passwords come into play.

Windows' auto backup won't work across networks for home premium versions, you need higher versions for that to work.

i'm not sure if that's because something extra is required, or just they decided to put the limitation on purpose.

I guess i'd have to try to find out.

I'm not sure how much i like they query thing every hour though, but i guess that would be necessary no matter how you do it, unless it would have it's own clock, which would just be worse.

or, how do windows tasks work? do they query like that every hour? or are they more linked to the windows clock. Would that be better on ressources? If i could get the task thingy in windows to start the program, i might prefer that, but the program would need to have a "backup automatically on startup" mode.
__________________
Slava Ukraini

Last edited by Sound asleep; 04-22-2013 at 02:37 PM.
Sound asleep is offline   Reply With Quote
Old 04-22-2013, 02:58 PM   #37
foxAsteria
Human being with feelings
 
foxAsteria's Avatar
 
Join Date: Dec 2009
Location: Oblivion
Posts: 10,255
Default

Quote:
Originally Posted by Sound asleep View Post
If i could get the task thingy in windows to start the program, i might prefer that, but the program would need to have a "backup automatically on startup" mode.
syncback free can do that.
__________________
foxyyymusic
foxAsteria is online now   Reply With Quote
Old 04-22-2013, 03:12 PM   #38
Lawrence
Human being with feelings
 
Join Date: Mar 2007
Posts: 21,551
Default

@SoundAsleep:

Not sure how you could have something "scheduled" to happen in any software (or any other case for that matter, in hardware) without a running timer of some sort. Anything that notifies you of anything (or periodically does anything at some designated interval) has to count, or it wouldn't know when to do whatever it's supposed to do.

As to "resources", relatively speaking a timer is much like a flea farting in the desert. It's of no concern.
Lawrence is offline   Reply With Quote
Old 04-22-2013, 04:08 PM   #39
kachaloo2002
Human being with feelings
 
Join Date: Jan 2009
Posts: 300
Default

my sincere condolences, seriously
__________________
DualCore Pentium D 920 2800 MHz, XP sp3, emu 0404 usb, Licensed Reaper user
kachaloo2002 is offline   Reply With Quote
Old 04-22-2013, 04:44 PM   #40
karbomusic
Human being with feelings
 
karbomusic's Avatar
 
Join Date: May 2009
Posts: 29,260
Default

Quote:
Originally Posted by Sound asleep View Post
Will this work across locations on my network? so say, i have one computer, and it is backing up a file the reaper data off another network location, and then saving that file to yet another network location?
It should work with a UNC path:

\\backupcomputer\folder1\

Quote:
It gets tricky when passwords come into play.
Just map a drive to that network location and use it.
karbomusic is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 09:36 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.