r/crestronprogramming • u/samos1023 • Jul 18 '19
copy a file from one cp3n to another from code?
I want to write code so that a Crestron CP3N can host a file on its disk, and have other processors on the network copy that file to their local drive. any ideas how to do this? are there console commands to do this? I have a large building that is using the TV presets SO and I want the rooms to all have the same user files. So I was hoping to write code that would allow the rooms to copy the files from one unit to the next
1
Upvotes
1
u/ThinkerOfThoughts Jul 18 '19
I would venture to guess this is impossible...ish Why not just have a windows server running Toolbox that does manual pushes to the cp3ns?
1
u/jasonhight Jul 18 '19
This can be accomplished using Simpl+. There’s a whole section on file management. I have used it to copy a text file used for schedule configurations across processors before.
1
u/geauxtig3rs Aug 10 '19
fput and fget work just fine for this. The processors are ftp servers and http servers...it's fairly easy to accomplish.
1
u/LordMarkus59 Aug 28 '19
If this is a once off, just use toolbox's file manager to grab your source file from the donor processor, then connect to each of the receiving processors and drag & drop into the same folder.
it'll most likely be the NVRAM folder, with perhaps a subfolder for the particular program slot.. \NVRAM\app1\<myTVpresets.txt for example.
You can also use filezilla to access the file system on all your processors to pull/push your files. I'm sure there are scripting systems out there that would allow you to automate that w/o needing to know Crestron programming.
You can of course write a crestron program that checks file stamps and updates the files in all your processors but that would require a lot of coding, bestto wait for your crestron guy to get back.