Working directory
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
Working directory

 
Post new topic   Reply to topic    CADForums.net Forum Index -> Pro/Engineer
Author Message
piearesquared2@yahoo.com
Guest





Posted: Sat May 14, 2005 12:10 am    Post subject: Working directory Reply with quote

How does one find out what the current working directory<path> is
outside of ProE? Other than just seeing what is is off the title bar

Or even passing the path info as a parameter.... &path or
&working_directory???? there's &model_name.... but no full path

I'm using r2001 , is this in WF

Thanks

Back to top
piearesquared2@yahoo.com
Guest





Posted: Sat May 14, 2005 12:10 am    Post subject: Re: Working directory Reply with quote

checked the achives but don't see that there is one... question has
been posed quite a few times.. is it in WF now?
Back to top
piearesquared2@yahoo.com
Guest





Posted: Sat May 14, 2005 12:10 am    Post subject: Re: Working directory Reply with quote

A solution....open system window.. batch file to write out or use set
statement
use that point the app back to the working directory

Back to top
GWDavis28



Joined: 08 Apr 2005
Posts: 70
Location: Massachusetts

Posted: Sat May 14, 2005 2:35 am    Post subject: re:Working directory Reply with quote

You just choose File -> Set Working Directory. It will show you the current working directory.

Are you trying to change your startup working directory?

Glenn |B)
Back to top
View user's profile Send private message Send e-mail
David Janes
Guest





Posted: Sun May 15, 2005 4:10 pm    Post subject: Re: Working directory Reply with quote

Quote:
piearesquared2@yahoo.com> wrote
A solution....open system window.. batch file to write out or use set
statement
use that point the app back to the working directory

Seems like it might work, but kind of a roundabout way. Since you have the system

window open anyway and the system window opens in the working directory, why not
start your app from there. If you type notepad, for instance, notepad will open
pointing to the working directory for file open/save functions. No special set or
path statements required.
--
David Janes
Back to top
piearesquared2@yahoo.com
Guest





Posted: Mon May 16, 2005 12:10 am    Post subject: Re: Working directory Reply with quote

What I wanting to do is to get Word and some other apps. to follow ProE
around based on what ProE's current working directory is.


I like keeping all the associated files that I might be using in the
same directory, makes it soooo much easier when you have to go back and
find something. It's a pain in the neck, really it's a pain somewhere
else :-) to have to keep changing the path on the other programs..
would like something that a little more automagic. and in doing so one
should also be able to drop a path note in a drawing since the working
dir <path> is the key to the rest.

Sure I could just have a folder open with explorer to wherever I had
set my WD and go from there and tweakui is GREAT for setting that up
and getting rid of some of those create new program that you never use.

There are certainly methods to get it done, I'd like a mapkey that will
manage it
Back to top
Stu
Guest





Posted: Mon May 16, 2005 4:10 pm    Post subject: Re: Working directory Reply with quote

On 15 May 2005 14:32:13 -0700, "piearesquared2@yahoo.com"
<piearesquared2@yahoo.com> wrote:

Quote:
What I wanting to do is to get Word and some other apps. to follow ProE
around based on what ProE's current working directory is.


I like keeping all the associated files that I might be using in the
same directory, makes it soooo much easier when you have to go back and
find something. It's a pain in the neck, really it's a pain somewhere
else :-) to have to keep changing the path on the other programs..
would like something that a little more automagic. and in doing so one
should also be able to drop a path note in a drawing since the working
dir <path> is the key to the rest.

Sure I could just have a folder open with explorer to wherever I had
set my WD and go from there and tweakui is GREAT for setting that up
and getting rid of some of those create new program that you never use.

There are certainly methods to get it done, I'd like a mapkey that will
manage it


you can do the following wiith Windoze. Unix scripting will vary
slightly_

Start a mapkey and set it up as a shell script.
the script

set filestring=%CD%\filename.ext
start notepad %filestring%


now, filename.ext is whatever file you have , eg myfile.xls

notepad willl be replaced with whatever app and full pathname to it if
required



a sample mapkey
mapkey bb @SYSTEMset filestring=\%CD\%\\filename.txt\nstart notepad
\%filestring\%\n;



----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Back to top
piearesquared2@yahoo.com
Guest





Posted: Mon May 16, 2005 4:10 pm    Post subject: Re: Working directory Reply with quote

I did manage to get this to do what i was looking for and can use it to
paste in a path note in a drawing too, left the mapkey for note out as
it is pretty straight forward
Now when I launch Word off quick launch, it has the macro command line
edits.. it is running in the wd and looks there for files and pictures

Stu.. I'll try your method on some of these apps that don't have the
marco option..Thanks All :-)

1. mapkey-----------------

mapkey wd @SYSTEMC:\\proe2001\\batch\\workdir.bat;


2. batch file--------------

cd > c:\workdir.txt




if you want Word to follow the working dir around then add this macro
to normal.dot or template of your choice
create shortcut- add space after .exe /mmacro1 and /ttemplatename if
you use other than normal, might have to have
the /ttemplatename before the macro part

Sub Macro1()
Open "c:\workdir.txt" For Input As #1
Input #1, fstr
Options.DefaultFilePath(wdDocumentsPath) = fstr
Options.DefaultFilePath(wdPicturesPath) = fstr
Close #1
End Sub
Back to top
piearesquared2@yahoo.com
Guest





Posted: Mon May 16, 2005 4:10 pm    Post subject: Re: Working directory Reply with quote

Thanks to all that helped in this, it has made my life much easier.
This forum and the others is what it is all about
Helping each other out.You hit that brick wall that you don't seem to
be able to get around, post the question and behold before you know it
there is a alternative that gets you going again. That old proverb "Two
Head are Better than One" certainly is kicked up a notch :-)
Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> Pro/Engineer All times are GMT
Page 1 of 1

 
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




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB