| View previous topic :: View next topic |
| Author |
Message |
jelaih OOo Enthusiast


Joined: 23 Feb 2005 Posts: 152
|
Posted: Fri Mar 18, 2005 2:58 am Post subject: setting a specified directory for created files.... |
|
|
hi! I need some help here..This is what i want to do...
I have created a macro that will execute a command in a shell that will compile a certain file. It works fine but my problem was, the files created out of this compilation like the *.aux, .*log seems to be saved on a specific path only. What I want is to set a default directory to the created files so that my files are not scattered to different location, Is it possible to set the directory to where my files should be saved out of that compilation?Thanks  _________________ codebits...  |
|
| Back to top |
|
 |
pitonyak Administrator


Joined: 09 Mar 2004 Posts: 3618 Location: Columbus, Ohio, USA
|
Posted: Fri Mar 18, 2005 5:30 am Post subject: |
|
|
Do you mean that you want a specific directory for the "current directory"? If so, do not count on this behavior. You are better off setting a property somewhere that you can check to indicate which directory to use. _________________ --
Andrew Pitonyak
http://www.pitonyak.org/oo.php |
|
| Back to top |
|
 |
DannyB Moderator


Joined: 02 Apr 2003 Posts: 3991 Location: Lawrence, Kansas, USA
|
Posted: Fri Mar 18, 2005 6:37 am Post subject: |
|
|
If you can execute a command in a shell, then execute a script. Write a bash script (linux) or ".bat" file (windows). Then call that as the shell command.
Your script could change the current directory to whatever you need, and then execute your compiler tool command, plus any other commands to move or copy files. _________________ Want to make OOo Drawings like the colored flower design to the left? |
|
| Back to top |
|
 |
jelaih OOo Enthusiast


Joined: 23 Feb 2005 Posts: 152
|
Posted: Sun Mar 20, 2005 6:37 pm Post subject: |
|
|
thanks! I'll try what i could do  _________________ codebits...  |
|
| Back to top |
|
 |
Cybb20 Super User


Joined: 02 Mar 2004 Posts: 1569 Location: Frankfurt, Germany
|
Posted: Mon Mar 21, 2005 9:56 am Post subject: |
|
|
And don't rely on ChDir and CurDir, both RTL functions are broken as of now, because of threading problems.
Christian _________________ - Knowledge is Power - |
|
| Back to top |
|
 |
|