OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

setting a specified directory for created files....

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
jelaih
OOo Enthusiast
OOo Enthusiast


Joined: 23 Feb 2005
Posts: 152

PostPosted: Fri Mar 18, 2005 2:58 am    Post subject: setting a specified directory for created files.... Reply with quote

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 Very Happy
_________________
codebits... Smile
Back to top
View user's profile Send private message
pitonyak
Administrator
Administrator


Joined: 09 Mar 2004
Posts: 3655
Location: Columbus, Ohio, USA

PostPosted: Fri Mar 18, 2005 5:30 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address
DannyB
Moderator
Moderator


Joined: 02 Apr 2003
Posts: 3991
Location: Lawrence, Kansas, USA

PostPosted: Fri Mar 18, 2005 6:37 am    Post subject: Reply with quote

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
View user's profile Send private message
jelaih
OOo Enthusiast
OOo Enthusiast


Joined: 23 Feb 2005
Posts: 152

PostPosted: Sun Mar 20, 2005 6:37 pm    Post subject: Reply with quote

thanks! I'll try what i could do Very Happy
_________________
codebits... Smile
Back to top
View user's profile Send private message
Cybb20
Super User
Super User


Joined: 02 Mar 2004
Posts: 1569
Location: Frankfurt, Germany

PostPosted: Mon Mar 21, 2005 9:56 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group