Article View: comp.windows.ms
Article #7583Re: W4W change doc directory?
From: David R Preston
Date: Sat, 15 Dec 1990 21:13
Date: Sat, 15 Dec 1990 21:13
42 lines
2368 bytes
2368 bytes
In article <87892@lll-winken.LLNL.GOV> preston@lll-crg.llnl.gov (David R Preston) writes:
>In article <1990Dec14.122008.19073@monu6.cc.monash.edu.au> cpa@monu6.cc.monash.edu.au (Christopher P Avram) writes:
>>One way to change the default directory used by
>>Microsoft Word for Windows or any other standard
>>application
> [steps 1-15 deleted]
>>I wish I new the correct way to do this.
>
>With a pif file. The manual mainly addresses using pifs with non-windows
>applications, but there's no reason you can't use it with a windows application
>to specify the start-up directory.
Um, it turns out that there is a very good reason you can't use a pif
with a windows application; it doesn't work. I shoulda tried it before
I posted....
Fortunately, there is a very simple way to set up a default directory with Word.
1. edit WIN.INI with a text editor - notepad or sysedit from insides window,
or something like PE or VI outside.
2. find the [Microsoft Word] section, if there isn't one add it
3. add a line defining what you want your default directory to be:
defdir = "E:\THESIS"
for example
4. if you are using an AutoExec macro, add the lines:
defdir$ = GetProfileString$("defdir")
ChDir defdir$
to the macro
if you are not using an AutoExec macro:
choose the macro menu
choose edit
type in the name AutoExec
this will get you a sub main...end sub pair
insert the two lines from above between the sub main and the end sub
Now whenever you start Word, the AutoExec macro will run and
change the directory to what you have specified in WIN.INI.
-david
preston@lll-crg.llnl.gov
B4 f+ t- k+ s-/+ r P8/3 S6 b+/- g- l-/+ y- z/! n o+/++ x a+ u v-- j++
D. R. Preston 584 Castro St. #614 SF CA 94114 USA
Technical Details
Message-ID:
<87923@lll-winken.LLNL.GOV>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!sun-barr!lll-winken!lll-crg.llnl.gov!prestonReferences:
<10730007@hpspkla.spk.hp.com> <1990Dec14.122008.19073@monu6.cc.monash.edu.au> <87892@lll-winken.LLNL.GOV>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!sun-barr!lll-winken!lll-crg.llnl.gov!preston From: preston@lll-crg.llnl.gov (David R Preston) Newsgroups: comp.windows.ms Subject: Re: W4W change doc directory? Keywords: Windows tips Message-ID: <87923@lll-winken.LLNL.GOV> Date: 15 Dec 90 21:13:10 GMT References: <10730007@hpspkla.spk.hp.com> <1990Dec14.122008.19073@monu6.cc.monash.edu.au> <87892@lll-winken.LLNL.GOV> Sender: usenet@lll-winken.LLNL.GOV Organization: Lawrence Livermore National Laboratory Lines: 42 Nntp-Posting-Host: lll-crg.llnl.gov