[GRASS-dev] Re: [GRASS GIS] #1178: WinGrass: g.extension - problem with path to $GISBASE

GRASS GIS trac at osgeo.org
Sun Sep 26 16:47:18 EDT 2010


#1178: WinGrass: g.extension - problem with path to $GISBASE
---------------------------------------------------------------+------------
 Reporter:  hellik                                             |       Owner:  grass-dev@…              
     Type:  defect                                             |      Status:  new                      
 Priority:  major                                              |   Milestone:  6.4.1                    
Component:  Installation                                       |     Version:  svn-releasebranch64      
 Keywords:  wingrass, g.extension, path, installation, addons  |    Platform:  MSWindows Vista          
      Cpu:  x86-32                                             |  
---------------------------------------------------------------+------------

Comment(by hellik):

 Replying to [comment:8 glynn]:
 > Replying to [comment:7 hellik]:
 >
 > > would a little bat-script on the windows-command-line help?
 > >
 > {{{
 > %~1 - expands %1 removing any surrounding quotes (")
 > %~f1 - expands %1 to a fully qualified path name
 > ...
 > }}}
 >
 > This doesn't work for me (on XP Pro). Is this a !Vista/Win7 feature?

 I've get above from following websites:

 http://stackoverflow.com/questions/659647/how-to-get-folder-path-from-
 file-path-with-cmd

 http://weblogs.asp.net/jgalloway/archive/2006/11/20/top-10-dos-batch-tips-
 yes-dos-batch.aspx

 I've only WinVista32, but I don't think it's only in WinVista/Win7.

 you can get this information as part of the help information for: for /?
 in the windows-command-line.

 in one of the above mentioned websites:

 {{{
 Batch file parameters are read as %1, %2, etc. DOS Command Extensions -
 available on Windows 2000 and up -
 [...]
 }}}

 Helmut

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/1178#comment:9>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list