Keith,

?? Are you saying I should create a file called '.profile' in directory MINGW\msys\1.0\home that contains a single command:
cd \MINGW     

On Tue, Jan 8, 2013 at 4:52 PM, Keith Marshall <keithmarshall@users.sourceforge.net> wrote:
On 08/01/13 20:00, LRN wrote:
> On 08.01.2013 23:25, Lou godio wrote:
>> I running MinGW under Windows XP 32-bit
>>
>> and I do this I execute file C:\MINGW\msys\1.0\msys.bat But this
>> file starts MinGW in the directory C:\MINGW\msys\1.0\home\ADMIN
>>
>> I want it to start MinGW  in directory c:\MINGW ...How can I do
>> this ??
>
> Edit /etc/profile to cd to a different directory.

Bad idea; /etc/profile is a system deliverable, and *will* be reverted
to the distributed default state, on any future MSYS upgrade.  Users are
advised *not* to modify /etc/profile, but rather to furnish their
customisation hooks in the form of /etc/profile.d scriptlets, or in
$HOME/.profile

In this case, the latter, (which is simply an alternative expression of
Renato's recommendation), is probably the better choice; however, we
should be asking why the OP wants to pollute the system tree with his
working files, instead of keeping them segregated in his designated
$HOME directory, (which is the default, and really should be preferred).

FWIW, if the OP really is determined to pursue this, another way he can
shoot himself in the foot is to define HOME to the desired Windows path
as a Windows environment variable, *before* starting MSYS.

--
Regards,
Keith.

------------------------------------------------------------------------------
Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS
and more. Get SQL Server skills now (including 2012) with LearnDevNow -
200+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only - learn more at:
http://p.sf.net/sfu/learnmore_122512
_______________________________________________
MinGW-users mailing list
MinGW-users@lists.sourceforge.net

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@lists.sourceforge.net?subject=unsubscribe