🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms
Article #7975

Re: WFW Default Directory

#7975
From: Michael Young
Date: Thu, 10 Jan 1991 14:04
47 lines
2646 bytes
In article <10847@uhccux.uhcc.Hawaii.Edu>, todd@uhunix1.uhcc.Hawaii.Edu (Todd Ogasawara) writes:

|> 
|> All you need is one line for this macro. My looks like this:
|> 
|> 	chdir "C:\DOCS"
|> 
|> I designate the drive because my winword is in D:\WINWORD (I have two hard
|> disks on my box). If you have one big partition, then don't bother with the
|> drive designator.
|> 
|> This will automatically set it so you "open" to "C:\DOCS" whenever you
|> start up WfW. Works fine for me....todd

I am also using this approach which works fine for me too.  There are a couple
of other things worth noting.
    
  o You may want to add the /m option (don't execute AutoExec macro) after
    your winword.exe definition in the [Extensions] section of win.ini. 
    Otherwise, if you ever happen to select a document from filemgr that isn't
    in your DOCS directory Winword won't be able to find it, since it will
    execute the chdir command in your AutoExec macro before it attempts to open
    the .DOC file you selected from filemgr.

  o I have added a custom win.ini keyword to my [Microsoft Word] section called
    DOC-PATH (in the spirit of DOT-PATH, defined by MS) which defines where my
    Document directory is.  Then in my AutoExec macro I request this keyword 
    using the command "GetProfileString$()".

  o Another macro I have added is SetStartupPrefs which permits me to set the
    DOC-PATH and DOT-PATH variables in my win.ini file using the command
    "SetProfileString$()".
|> 
|> --
|> Todd Ogasawara, U. of Hawaii
|> UUCP:		{uunet,ucbvax,dcdwest}!ucsd!nosc!uhunix!todd
|> BITNET:		todd@uhunix
|> INTERNET:	todd@uhunix.UHCC.HAWAII.EDU

-- 
Mike Young

--------------------------------------------------------------------------
Racal-Milgo                         Phone:  (305) 846-6956
1601 N. Harrison Parkway            Fax:    (305) 846-6282
Sunrise, FL  33323-2899  MS-E115    UUCP:   ...uflorida!novavax!rm1!myoung
--------------------------------------------------------------------------
Technical Details
Message-ID: <966@rm1.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!think.com!spool2.mu.edu!sol.ctr.columbia.edu!caen!uflorida!novavax!rm1!rm1.UUCP!myoung
References: <3724@orbit.cts.com> <XJ66u3w163w@hlthnt.UUCP> <10847@uhccux.uhcc.Hawaii.Edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!think.com!spool2.mu.edu!sol.ctr.columbia.edu!caen!uflorida!novavax!rm1!rm1.UUCP!myoung
From: myoung@rm1.UUCP (Michael Young)
Newsgroups: comp.windows.ms
Subject: Re: WFW Default Directory
Message-ID: <966@rm1.UUCP>
Date: 10 Jan 91 14:04:16 GMT
References: <3724@orbit.cts.com> <XJ66u3w163w@hlthnt.UUCP> <10847@uhccux.uhcc.Hawaii.Edu>
Sender: news@rm1.UUCP
Reply-To: myoung@rm1.UUCP (Michael Young)
Organization: Racal-Milgo, Sunrise, Florida
Lines: 47