[GRASS-user] GRASS 6.4 Windows - How to change current directory

Hi all,

I have some problem to change the current directory on the windows terminal. I used cd : d:\directory but I stay in the same directory...

Do someone knows how to do that on windows?

Thanks for your help.

Lucien

Le 27/03/2013 15:04, BLANDENIER Lucien a écrit :

Hi all,

I have some problem to change the current directory on the windows terminal. I used cd : d:\directory but I stay in the same directory...

Do someone knows how to do that on windows?

Thanks for your help.

Lucien

_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

if you are using the OSGeo4W distribution, then you might try "chdir" instead of "cd"
(DOS syntax)... which looks strange to me but it did happen in a test I recently performed

Nicolas

Thank you Nicolas for your answer,

I tried the chdir command but it doesn't work. As for the cd command, I dont' receive an error message but I stay in C:\.

I use the distribution that is include in the QGis distribution.

________________________________________
De : Nicolas Pérenne [nicolas.perenne@free.fr]
Date d'envoi : mercredi 27 mars 2013 15:38
À : BLANDENIER Lucien
Cc: "grass-user ‎[grass-user@lists.osgeo.org]‎"
Objet : Re: [GRASS-user] GRASS 6.4 Windows - How to change current directory

Le 27/03/2013 15:04, BLANDENIER Lucien a écrit :

Hi all,

I have some problem to change the current directory on the windows terminal. I used cd : d:\directory but I stay in the same directory...

Do someone knows how to do that on windows?

Thanks for your help.

Lucien

_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

if you are using the OSGeo4W distribution, then you might try "chdir"
instead of "cd"
(DOS syntax)... which looks strange to me but it did happen in a test I
recently performed

Nicolas

Are you putting a : between the cd and the path (d:\dir)?
If yes, remove that :

Daniel

On Mar 27, 2013 11:04 AM, “BLANDENIER Lucien” <lucien.blandenier@unine.ch> wrote:

Hi all,

I have some problem to change the current directory on the windows terminal. I used cd : d:\directory but I stay in the same directory…

Do someone knows how to do that on windows?

Thanks for your help.

Lucien


grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Hi Daniel,

Thank you for your suggestion but it neither works.

Others idea?

________________________________
De : Daniel Victoria [daniel.victoria@gmail.com]
Date d'envoi : mercredi 27 mars 2013 16:54
À : BLANDENIER Lucien
Cc: grass
Objet : Re: [GRASS-user] GRASS 6.4 Windows - How to change current directory

Are you putting a : between the cd and the path (d:\dir)?
If yes, remove that :

Daniel

On Mar 27, 2013 11:04 AM, "BLANDENIER Lucien" <lucien.blandenier@unine.ch<mailto:lucien.blandenier@unine.ch>> wrote:
Hi all,

I have some problem to change the current directory on the windows terminal. I used cd : d:\directory but I stay in the same directory...

Do someone knows how to do that on windows?

Thanks for your help.

Lucien

_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org<mailto:grass-user@lists.osgeo.org>
http://lists.osgeo.org/mailman/listinfo/grass-user

Hi Lucien,

I sent the email but I did not test. Now I’m sitting in front of my winbox and indeed, it does not work.

In winGrass v7 the command terminal is kept open so you can issue commands like change directory and the likes. But I’m not able to do it in 6.4

Daniel

···

On Wed, Mar 27, 2013 at 1:20 PM, BLANDENIER Lucien <lucien.blandenier@unine.ch> wrote:

Hi Daniel,

Thank you for your suggestion but it neither works.

Others idea?


De : Daniel Victoria [daniel.victoria@gmail.com]
Date d’envoi : mercredi 27 mars 2013 16:54
À : BLANDENIER Lucien
Cc: grass
Objet : Re: [GRASS-user] GRASS 6.4 Windows - How to change current directory

Are you putting a : between the cd and the path (d:\dir)?
If yes, remove that :

Daniel

On Mar 27, 2013 11:04 AM, “BLANDENIER Lucien” <lucien.blandenier@unine.chmailto:[lucien.blandenier@unine.ch](mailto:lucien.blandenier@unine.ch)> wrote:
Hi all,

I have some problem to change the current directory on the windows terminal. I used cd : d:\directory but I stay in the same directory…

Do someone knows how to do that on windows?

Thanks for your help.

Lucien


grass-user mailing list
grass-user@lists.osgeo.orgmailto:[grass-user@lists.osgeo.org](mailto:grass-user@lists.osgeo.org)
http://lists.osgeo.org/mailman/listinfo/grass-user

Le 27/03/2013 15:47, BLANDENIER Lucien a écrit :

Thank you Nicolas for your answer,

I tried the chdir command but it doesn't work. As for the cd command, I dont' receive an error message but I stay in C:\.

I use the distribution that is include in the QGis distribution.

________________________________________
De : Nicolas Pérenne [nicolas.perenne@free.fr]
Date d'envoi : mercredi 27 mars 2013 15:38
À : BLANDENIER Lucien
Cc: "grass-user ‎[grass-user@lists.osgeo.org]‎"
Objet : Re: [GRASS-user] GRASS 6.4 Windows - How to change current directory

Le 27/03/2013 15:04, BLANDENIER Lucien a écrit :

Hi all,

I have some problem to change the current directory on the windows terminal. I used cd : d:\directory but I stay in the same directory...

Do someone knows how to do that on windows?

Thanks for your help.

Lucien

_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

if you are using the OSGeo4W distribution, then you might try "chdir"
instead of "cd"
(DOS syntax)... which looks strange to me but it did happen in a test I
recently performed

Nicolas

It won't help in the current case but for potential OSGeo4W users I need to correct myself:
the shell in (my installation of) OSGeo4W is ms-dos, not 'bash' (or any other flavor of 'sh').
So it does understand 'cd' (contratry to what I wrote above) although the native command would be more like 'chdir'.

Hoverer, to switch to another "drive" in ms-dos I first type the drive (by itself), e.g.
C:> D: <enter>
and then I can proceed with 'cd':
D:> cd grassdata <enter>

Nicolas