jqcc
Mar 3 2004, 10:28 AM
I am doing an installer from a CD like slayers
I have run into a number of problems including CHDMOD
? - after I copy the file say a.xml to e:\
how do I change the attributes
i have tried CHDMOD 777 e:\a.xml
can the chdmod command be used to do all the files and children files in a directory
i.e. instead of chdmod per file I will just do a chdmod on the whole directory
Second question
Can I use action scripts within the menu.xml
IF condition 1
<action>
what I want to do is only show certain menu items based on conditions
How can this be best implemented
BenJeremy
Mar 3 2004, 10:55 AM
It's CHMOD, but ATTR would probably be better, as it acts on an entire path.
ATTR F:\GAMES RW
As for ActionScripting in the XML, you can't use it in the manner you propose... the next release will be far more flexible in the kinds of things you can do - including launching an actionscript and acting on the XML before it is used.
It may be possible to use the AutoExec actionscript to manipulate the menu's XML, though.
jqcc
Mar 3 2004, 01:25 PM
Thanks BJ - you are a great help as usual
I am trying to create a font/exploit from a CD
Looks like attr will help me a lot
Another question though
If I have MXM running as a dash and I put in a CD with another MXM
Can I use the CD's MXM to overwrite the mxm.xml and menu.xml files
Plus
Is autoexec run everytime?
Context menus
- can I use this to solve my problems
Thanks again
BenJeremy
Mar 3 2004, 01:45 PM
| QUOTE (jqcc @ Mar 3 2004, 10:25 AM) |
Thanks BJ - you are a great help as usual
I am trying to create a font/exploit from a CD
Looks like attr will help me a lot
Another question though
If I have MXM running as a dash and I put in a CD with another MXM Can I use the CD's MXM to overwrite the mxm.xml and menu.xml files
|
Sure... the version booted from CD would be running the files local to it, not the ones from the HD.
| QUOTE |
Plus Is autoexec run everytime?
|
Yes. There are several ways this can be done. Adding a script to your MXM.xml with the name "AutoExec" will execute following the "internal" _AutoExec script. Likewise, if MXM finds an AutoExec.xas file in the MXM execution directory, it will run that, too.
| QUOTE |
Context menus - can I use this to solve my problems
|
I don't think so... it's intended to allow the script to have some awareness of the currently selected item, for deleting, renaming, etc...
Kthulu
Mar 5 2004, 07:30 PM
| QUOTE |
| what I want to do is only show certain menu items based on conditions |
you can't do that with the MXM's menu, but you can implement your own menu in actionscript and run that from the Autoexec...
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.