On Sat, 19 Oct 2002 23:12:49 +0200 ((MEZ) - Mitteleurop. Sommerzeit) Roland Bauer 
<[EMAIL PROTECTED]> wrote:

RB> - I used the Perl script http://home.ix.netcom.com/~mchase/zip/M-Config.zip
RB> from Michael to write the config values from the registry
RB> to a file (I had troubles in directly reading the values. So
RB> I wrote the section to a file and converted this file with the script.)

 Mahogany should have an "Export" function under Windows (well, maybe under
Unix as well -- but there it would simply copy the .M/config file), of
course...

RB> - Then I wanted to call Mahogany relatively to the
RB> current directory. This did not work. It seems that Mahogany
RB> wants an absolute path for "--config". However, it seems
RB> to accept both UNIX- and DOS-Syntax (dir/dir/file vs dir\dir\file)

 It is normal that it accepts both separators (as almost all Windows
utilities do BTW) but I don't know why didn't using a relative path work.
What did it say?

RB> - The following paths must be absolute as well:
RB> FolderDir
RB> GlobalDir
RB> UserDirectory
RB> TreeSelection (?)
RB> AdbFilePath (?)

 Do they? What happens if they're not?

RB> - The paths mostly need double backslashes but there are exceptions
RB> where even DOS- and UNIX-conventions can be mixed up.

 I think you can use slashes everywhere. Where it didn't work?

RB> To make this possible I think the following were useful:
RB> 
RB> - Mahogany should accept normal slashes in paths (like Perl does)

 Agreed. Please let me know where it doesn't.

RB> - it should accept relative paths like "./dir/dir" or "dir/dir" for FolderDir, 
GlobalDir, ...

 Alternative solution is to use environment variables (i.e. write
FolderDir=$FOLDER_DIR) in the config file.

RB> - the syntax "M.exe --config=file.cfg" should be ok
RB> 
RB> Please tell me if there is a better way how I could accomplish 
RB> my object.

 I think there are more problems than the ones you found now. I'm going to
think about it and post my ideas on the subject to m-dev a.s.a.p. -- in
fact, I wanted to do it today but didn't have enough time...

 Regards,
VZ



-------------------------------------------------------
This sf.net email is sponsored by:
Access Your PC Securely with GoToMyPC. Try Free Now
https://www.gotomypc.com/s/OSND/DD
_______________________________________________
Mahogany-Users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-users

Reply via email to