Path: csiph.com!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: bilsch Newsgroups: comp.lang.java.programmer Subject: Re: Space in 'My Documents' directory not fixed by quoting or \ escaping Date: Tue, 29 May 2012 16:06:25 -0700 Organization: A noiseless patient Spider Lines: 42 Message-ID: References: <4fc4c1cb$0$6931$e4fe514c@news2.news.xs4all.nl> <23u9s7tr13usskfhim78anlj5g8pe3q9l1@4ax.com> <899d499e-c1ad-4863-b941-575aaaac1c4b@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 29 May 2012 23:06:25 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="llALXQ6TxsVqIoSLcrwVyA"; logging-data="12682"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19TqR9ssbu1TFv/S6tOwX0N" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 In-Reply-To: Cancel-Lock: sha1:+NoiDInieVJsfRhmIDyWONx6MUs= Xref: csiph.com comp.lang.java.programmer:14926 On 5/29/2012 2:55 PM, Gene Wirchenko wrote: > On Tue, 29 May 2012 14:07:29 -0700 (PDT), Lew > wrote: > >> Gene Wirchenko wrote: >>> Lew wrote: >>>> Gene Wirchenko wrote: >>>>> then hit tab. Windows will do the rest, even adding appropriate quotes where >>>>> necessary. Note that you must use the Windows \ path separator for this to work. >>>> >>>> "/" is a Windows path *element* separator. ";" is the path separator in Windows. >>>> >>>> Windows is fine with forward slashes in paths. I suspect the "%1" expansion. >>> >>> But since using "/" as a path element seprator in a command line >>> will cause trouble, people tend to avoid using them as such. >> >> That is interesting to me. What trouble? >> >> I have used forward slashes as path element separators in Windows >> command-line commands. I don't recall that it caused any trouble. > > I checked with Windows XP just before posting. The CLI did not > like > dir /download > and no wonder since "/" is used in many command-line programs for > indicating parameters. Windows 7 behaves the same way. (I just > checked.) > > It is easier to just use backslashes and not have to worry if > slash is acceptable in the current context. I prefer just typing and > not having to think about typing. > >> I'm always learning from this forum. > > So do I. > > Sincerely, > > Gene Wirchenko Forward slash works