--
You received this message because you are subscribed to the Google Groups "InterSystems: MV Community" group.
To post to this group, send email to Cac...@googlegroups.com
To unsubscribe from this group, send email to CacheMV-u...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/CacheMV?hl=en
you could also open it in studio, then use the context menu "export" option to write the item to an xml file which you could import on the target machine using the tools|import local (or remote) menu option.
You could also export it to xml from studio, and import it from a command line on the remote system with the $SYSTEM.OBJ->Load() method. Instead of studio you could use the $SYSTEM.OBJ->Export() method to write it to xml.
You could also use the %Library.Global->Import() and Export() methods. The advantage there is that you can export/import multiple items (global nodes) at one time, and import nodes selectively.
To move the xml file from one system to another, you could use the %Net.FTP class. Or you could go all out and write a web service to transfer the globals from one system to the other :)
The Tilde form is also useful for opening mv programs in studio from a windows command line, for example:
c:\intersystems\ejc\bin\CSTUDIO.EXE /FASTCONNECT=localhost[1972]:USER /namespace=USER /files=AR-BP~AGING.mvb
would start studio, connect to localhost on port 1972 in namespace USER and open item AGING in file AR-BP
fyi, there is also an X option on create-file. It is only useful for directory-type files. When you write an item MYPROG to a file marked with X, Cache actually writes out a file named MYPROG.mvb. So you use MYPROG inside of cache, but you have the .mvb extension in the os file which you can use with external editors like ultiedit to identify the file for mv syntax coloring, or file type identification.
I wasn't aware of the X option. Good to know!
B
I'll try the X option this weekend and see if that helps. From the
description that might be the ticket.
Thanks, Ed.