Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Network drive/local drive backup of .qml
#1
Gintaras,

I have a laptop at work that goes with me on the go. While I am in the office a network drive is available that I back up my main .qml file to. When I am working on the go I use a local copy on my desktop. I like to have the everything on the network drive because a couple different backups are made of that drive every night!

What I was wondering is what is the best way to do this automatically in QM?

Basically I would like QM to autosave to the network version if the network drive is available and the local version if not.

Thanks,
Jimmy Vig
#2
Create function that runs automatically when local file modified. Let it copy the file to network.
#3
That's what I was kind of thinking. Just wanted to make sure there wasn't a better way of doing it.

Thanks for the super fast reply!!

Jimmy Vig
#4
Function qml_network_backup
Trigger $f 0x48 "q:\app" "ok.qml"     Help - how to add the trigger to the macro
Code:
Copy      Help
function event $name [$newname]

str f="\\X\test"
if(!dir(f 1)) ret
cop- name f
err out _error.description

Runs when "q:\app\ok.qml" is modified, and copies it to "\\X\test" folder, if available.


Forum Jump:


Users browsing this thread: 2 Guest(s)