[prev in list] [next in list] [prev in thread] [next in thread]
List: mingw-users
Subject: Re: [Mingw-users] Short file names.
From: Peter Rosin <peda () lysator ! liu ! se>
Date: 2010-09-20 18:57:23
Message-ID: 4C97AE93.2020307 () lysator ! liu ! se
[Download RAW message or body]
Den 2010-09-20 18:43 skrev LRN:
> On 20.09.2010 18:54, Peter Rosin wrote:
> > I have a silly, twisted and probably fragile way to do it, using
> > a loop that calls "cmd //C dir //X ..." and various sed expressions
> > etc, so I'd very much appreciate a simple way.
> Sed expressions? AFAIK cmd shell variable expansion is able to produce
> short version of a path, so you do not need to use "dir" command, just
> something along echo `cmd //C "for %i in (".") do @echo %~si"` (to echo
> short form of current directory, you'll have to cd into the directory
> you want first, obviously).
I told you it was silly and twisted, didn't I? :-)
Anyway, thanks for the excellent suggestion!
Cheers,
Peter
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic